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

:root {
    --bg: #000000;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --glass-hover: rgba(255,255,255,0.08);
    --text: rgba(255,255,255,0.92);
    --text2: rgba(255,255,255,0.48);
    --text3: rgba(255,255,255,0.24);
    --accent: rgba(255,255,255,0.85);
    --ring: rgba(255,255,255,0.15);
    --red: #ff453a;
    --green: #30d158;
    --blue: #0a84ff;
    --radius: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Subtle BG ---- */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 20%, rgba(255,255,255,0.03) 0%, transparent 100%),
        radial-gradient(ellipse 500px 500px at 70% 80%, rgba(255,255,255,0.02) 0%, transparent 100%),
        #000;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.bg-orb:nth-child(2) {
    width: 600px; height: 600px;
    background: #fff;
    top: -200px; left: -100px;
}

.bg-orb:nth-child(3) {
    width: 500px; height: 500px;
    background: #fff;
    bottom: -200px; right: -100px;
}

.bg-orb:nth-child(4) { display: none; }

/* ---- Glass ---- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* ---- Layout ---- */
#app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 16px 16px 48px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Header ---- */
.header {
    text-align: center;
    padding: 28px 24px 22px;
    margin-bottom: 12px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.tagline {
    color: var(--text3);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.tg-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text2);
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 400;
}

.tg-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.tg-link svg {
    width: 14px;
    height: 14px;
    fill: var(--text2);
    transition: fill 0.25s;
}

.tg-link:hover svg { fill: var(--text); }

/* ---- Stats ---- */
.stats-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.stat-chip {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text3);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    font-weight: 400;
    letter-spacing: 0.1px;
}

.stat-chip b {
    color: var(--text2);
    font-weight: 500;
}

.stat-chip.credits-chip b {
    color: var(--text);
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    padding: 3px;
    margin-bottom: 20px;
    gap: 2px;
}

.tab {
    flex: 1;
    padding: 9px 0;
    border: none;
    background: transparent;
    color: var(--text3);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.1px;
}

.tab.active {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.tab:hover:not(.active) {
    color: var(--text2);
}

/* ---- Views ---- */
.view {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: viewIn 0.3s ease;
}

.view.active { display: flex; }

@keyframes viewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---- Circle ---- */
.circle-stage {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.circle-frame {
    position: relative;
    width: 260px;
    height: 260px;
}

.circle-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.circle-frame.recording .circle-glow {
    opacity: 1;
    background: radial-gradient(circle, rgba(255,69,58,0.12) 0%, transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite;
}

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

.circle-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 3;
}

.circle-ring .ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.06);
    stroke-width: 2;
}

.circle-ring .ring-progress {
    fill: none;
    stroke: rgba(255,255,255,0.4);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 848;
    stroke-dashoffset: 848;
    transition: stroke-dashoffset 0.2s linear;
}

.circle-ring .ring-progress.rec {
    stroke: var(--red);
}

.circle-viewport {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.circle-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.circle-viewport .placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text3);
    font-size: 0.78rem;
    text-align: center;
    padding: 24px;
}

.placeholder-icon.hidden { display: none; }

.circle-timer {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    z-index: 4;
    display: none;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.5px;
}

/* ---- Record Controls ---- */
.rec-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.rec-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.rec-btn:hover {
    border-color: rgba(255,69,58,0.4);
    background: rgba(255,69,58,0.06);
}

.rec-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rec-dot.is-rec {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.rec-hint {
    color: var(--text3);
    font-size: 0.75rem;
    letter-spacing: 0.1px;
}

/* Upload */
.upload-bar {
    width: 100%;
    max-width: 260px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    background: rgba(255,255,255,0.06);
}

.upload-fill {
    height: 100%;
    background: var(--text2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.upload-text {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text3);
    font-weight: 400;
}

.hidden { display: none !important; }

/* ---- Watch ---- */
.watch-header {
    text-align: center;
    margin-bottom: 4px;
}

.watch-header p {
    color: var(--text3);
    font-size: 0.82rem;
    font-weight: 400;
}

.watch-header b {
    color: var(--text2);
    font-weight: 500;
}

.playback-border .circle-viewport {
    border-color: rgba(255,255,255,0.1);
    cursor: pointer;
}

.watch-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 260px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    padding: 11px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.btn-accent {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.btn-accent:hover {
    background: rgba(255,255,255,0.14);
}

.btn-accent:disabled {
    background: rgba(255,255,255,0.03);
    color: var(--text3);
    cursor: not-allowed;
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text2);
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}

.btn-ghost:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.watch-meta {
    margin-top: 12px;
    font-size: 0.72rem;
    color: var(--text3);
    text-align: center;
    letter-spacing: 0.2px;
}

/* ---- My Circles ---- */
.my-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.my-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.my-item:last-child { border-bottom: none; }

.my-item:hover {
    background: rgba(255,255,255,0.02);
}

.my-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}

.my-thumb:hover {
    border-color: rgba(255,255,255,0.15);
}

.my-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.my-info .date {
    font-size: 0.82rem;
    color: var(--text2);
    font-weight: 400;
}

.my-info .meta {
    font-size: 0.72rem;
    color: var(--text3);
    margin-top: 2px;
}

.my-del {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.my-item:hover .my-del { opacity: 1; }
.my-del:hover { color: var(--red); }

.empty-msg {
    text-align: center;
    color: var(--text3);
    padding: 56px 0;
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: modalIn 0.25s ease;
}

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

.modal-circle {
    width: min(75vw, 300px);
    height: min(75vw, 300px);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 80px rgba(255,255,255,0.03);
}

.modal-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-x {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text2);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition: all 0.2s;
}

.modal-x:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

/* ---- Footer ---- */
.footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.footer a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.footer a:hover { color: var(--text2); }

/* ---- Action row (like / dislike / report) ---- */
.action-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn svg { width: 16px; height: 16px; }

.action-btn:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text);
}

.action-btn.active.like {
    color: var(--green);
    background: rgba(48,209,88,0.08);
    border-color: rgba(48,209,88,0.2);
}

.action-btn.active.dislike {
    color: var(--red);
    background: rgba(255,69,58,0.08);
    border-color: rgba(255,69,58,0.2);
}

/* ---- Warning / captcha / report cards ---- */
.warning-card {
    max-width: 340px;
    width: calc(100% - 40px);
    padding: 28px 24px;
    text-align: center;
    border-radius: 20px;
}

.warning-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.2px;
}

.warning-card p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.55;
    margin-bottom: 12px;
}

.warning-card p.muted {
    color: var(--text3);
    font-size: 0.78rem;
}

.warning-card .btn {
    width: 100%;
    margin-top: 6px;
}

.captcha-question {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
    margin: 18px 0 12px;
    font-variant-numeric: tabular-nums;
}

.warning-card input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 0.95rem;
    text-align: center;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.warning-card input::-webkit-outer-spin-button,
.warning-card input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.warning-card input:focus {
    border-color: rgba(255,255,255,0.2);
}

.captcha-err {
    color: var(--red) !important;
    font-size: 0.78rem !important;
    margin-bottom: 8px !important;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.reason-btn {
    padding: 11px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text2);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reason-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

/* ---- Profile / badges / history ---- */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 600; color: var(--text);
    flex-shrink: 0;
}

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

.profile-nick {
    font-size: 1rem; font-weight: 600; color: var(--text);
    letter-spacing: -0.2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.profile-meta {
    font-size: 0.74rem; color: var(--text3); margin-top: 2px;
}

.badges-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px; padding: 0 4px;
    justify-content: center;
}

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.72rem;
    color: var(--text2);
    font-weight: 500;
}

.badge .ic { font-size: 0.85rem; line-height: 1; }

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.pstat {
    text-align: center;
    padding: 10px 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.pstat .v { font-size: 1rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.pstat .l { font-size: 0.65rem; color: var(--text3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }

/* Author label inside circle viewport */
.author-tag {
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    z-index: 4;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cam-switch-btn {
    position: absolute;
    bottom: 10px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: background 0.2s;
}
.cam-switch-btn:hover { background: rgba(0,0,0,0.7); }
.cam-switch-btn svg { width: 16px; height: 16px; }

/* History grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.history-item {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}
.history-item:hover { border-color: rgba(255,255,255,0.18); }
.history-item video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.history-item.dead {
    opacity: 0.4;
    filter: grayscale(0.5);
}
.history-item .h-meta {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    padding: 1px 7px;
    border-radius: 100px;
    background: rgba(0,0,0,0.65);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.history-item .h-del {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: none;
    color: var(--text2);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.history-item:hover .h-del { opacity: 1; }
.history-item .h-del:hover { color: var(--red); }

/* Nick check states */
.nick-status {
    font-size: 0.74rem;
    margin: -6px 0 10px;
    min-height: 16px;
    text-align: center;
}
.nick-status.ok { color: var(--green); }
.nick-status.bad { color: var(--red); }
.nick-status.muted { color: var(--text3); }

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    padding: 11px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    font-size: 0.83rem;
    z-index: 200;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---- Responsive ---- */
@media (max-width: 400px) {
    .circle-frame { width: 220px; height: 220px; }
    .logo { font-size: 1.3rem; }
    #app { padding: 10px 10px 30px; }
}

/* ==================== Comments ==================== */
.comments-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.comments-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment {
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 8px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-nickname {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    margin-left: 4px;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
    position: relative;
}

.verified-badge::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.comment-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 8px;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
}

.comment-submit {
    width: 100%;
    padding: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit:hover {
    background: var(--glass-hover);
}

.comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-badge-message {
    padding: 12px;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 10px;
    color: rgba(255, 200, 0, 0.9);
    font-size: 0.85rem;
    text-align: center;
}

/* ==================== Badge Editor ==================== */
.badge-editor {
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.badge-editor-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.badge-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 2px solid;
}

.badge-form-group {
    margin-bottom: 12px;
}

.badge-form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 6px;
}

.badge-form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}

.badge-form-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
}

.icon-picker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.icon-option {
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-option:hover {
    background: rgba(255,255,255,0.08);
}

.icon-option.selected {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
}

.badge-price {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0;
}

/* ==================== PIN Input ==================== */
.pin-modal {
    max-width: 400px;
    padding: 32px 24px;
    text-align: center;
}

.pin-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.pin-subtitle {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 24px;
}

.pin-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.pin-digit {
    width: 56px;
    height: 64px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.2s;
}

.pin-digit:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    transform: scale(1.05);
}

/* ==================== Special Profile: @wusva ==================== */
.profile-wusva {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(59, 130, 246, 0.15) 50%, 
        rgba(236, 72, 153, 0.15) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899) 1;
    animation: wusva-glow 3s ease-in-out infinite;
}

@keyframes wusva-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
                    0 0 40px rgba(59, 130, 246, 0.2),
                    0 0 60px rgba(236, 72, 153, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.4),
                    0 0 60px rgba(59, 130, 246, 0.3),
                    0 0 90px rgba(236, 72, 153, 0.2);
    }
}

.profile-wusva .logo {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    animation: wusva-text 5s ease-in-out infinite;
}

@keyframes wusva-text {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.wusva-crown {
    display: inline-block;
    font-size: 1.5rem;
    margin-left: 8px;
    animation: wusva-crown-float 2s ease-in-out infinite;
}

@keyframes wusva-crown-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.circle-border-wusva {
    border: 3px solid;
    border-image: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899) 1;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
                0 0 40px rgba(59, 130, 246, 0.3);
}

/* ==================== Profile Actions ==================== */
.profile-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.badge-purchase-btn {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    cursor: pointer;
    transition: all 0.2s;
}

.badge-purchase-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-1px);
}

.badge-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.badge-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.badge-price {
    font-size: 0.8rem;
    color: var(--text2);
}

/* ==================== Profile Settings ==================== */
.profile-settings {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
}

.setting-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--blue);
}

.public-link {
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.15);
    border-radius: 6px;
    color: rgba(10, 132, 255, 0.9);
    font-size: 0.8rem;
    font-family: monospace;
    text-align: center;
}

.verification-btn {
    width: 100%;
    padding: 8px 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.verification-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.verification-pending {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 200, 0, 0.06);
    border: 1px solid rgba(255, 200, 0, 0.12);
    border-radius: 8px;
    color: rgba(255, 200, 0, 0.9);
    font-size: 0.8rem;
    text-align: center;
}

/* ==================== Swipe Gestures ==================== */
.swipe-container {
    position: relative;
    touch-action: pan-y;
}

.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.swipe-indicator.left {
    left: 20px;
}

.swipe-indicator.right {
    right: 20px;
}

.swipe-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 9;
}

.swipe-gradient.left {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 69, 58, 0.3) 0%, transparent 100%);
}

.swipe-gradient.right {
    right: 0;
    background: linear-gradient(270deg, rgba(48, 209, 88, 0.3) 0%, transparent 100%);
}

/* ==================== Camera Switch Button ==================== */
.cam-switch-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.cam-switch-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.cam-switch-btn:active {
    transform: scale(0.95);
}

.cam-switch-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* ==================== Author Tag Improvements ==================== */
.author-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.author-tag .verified-badge {
    width: 14px;
    height: 14px;
    font-size: 9px;
    margin-left: 2px;
}

/* ==================== TTL Tag Improvements ==================== */
.ttl-tag {
    display: inline-block;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}


/* ==================== PWA Install Banner ==================== */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 440px;
    margin: 0 auto;
    padding: 16px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pwa-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pwa-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

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

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

.pwa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
}

.pwa-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.pwa-subtitle {
    font-size: 0.8rem;
    color: var(--text2);
}

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

.pwa-actions button {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
}
