    :root {
      --theme-bg-primary: #000000;
      --theme-bg-secondary: #111111;
      --theme-bg-tertiary: #1a1a1a;
      --theme-border: #333333;
      --theme-text-primary: #ffffff;
      --theme-text-secondary: #888888;
      --theme-accent: dodgerblue;
      --theme-accent-gradient: dodgerblue;
    }
    body.theme-default {
      --theme-bg-primary: #000000;
      --theme-bg-secondary: #111111;
      --theme-bg-tertiary: #1a1a1a;
      --theme-border: #333333;
      --theme-text-primary: #ffffff;
      --theme-text-secondary: #888888;
      --theme-accent: #1d9bf0;
      --theme-accent-gradient: linear-gradient(135deg, #1d9bf0 0%, #1d9bf0 100%);
    }
    body.theme-discord {
      --theme-bg-primary: #36393f;
      --theme-bg-secondary: #2f3136;
      --theme-bg-tertiary: #202225;
      --theme-border: #202225;
      --theme-text-primary: #ffffff;
      --theme-text-secondary: #b9bbbe;
      --theme-accent: #5865f2;
      --theme-accent-gradient: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    }
    body.theme-amethyst {
      --theme-bg-primary: #1a1a2e;
      --theme-bg-secondary: #16213e;
      --theme-bg-tertiary: #0f3460;
      --theme-border: #333;
      --theme-text-primary: #ffffff;
      --theme-text-secondary: #a0a0a0;
      --theme-accent: #667eea;
      --theme-accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    body.theme-aurora {
      --theme-bg-primary: #0a192f;
      --theme-bg-secondary: #112240;
      --theme-bg-tertiary: #233554;
      --theme-border: #233554;
      --theme-text-primary: #e6f1ff;
      --theme-text-secondary: #8892b0;
      --theme-accent: #00c6ff;
      --theme-accent-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    }
    body.theme-sunset {
        --theme-bg-primary: #1a1a1a;
        --theme-bg-secondary: #2d2d2d;
        --theme-bg-tertiary: #3d3d3d;
        --theme-border: #444;
        --theme-text-primary: #ffffff;
        --theme-text-secondary: #aaa;
        --theme-accent: #f093fb;
        --theme-accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }
    body.theme-forest {
      --theme-bg-primary: #0d2018;
      --theme-bg-secondary: #142b1f;
      --theme-bg-tertiary: #1b3d2a;
      --theme-border: #1b3d2a;
      --theme-text-primary: #e8f5e9;
      --theme-text-secondary: #81c784;
      --theme-accent: #38ef7d;
      --theme-accent-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }
    body.theme-ocean {
      --theme-bg-primary: #0f1c3f;
      --theme-bg-secondary: #1a3a6e;
      --theme-bg-tertiary: #2a5298;
      --theme-border: #2a5298;
      --theme-text-primary: #e0efff;
      --theme-text-secondary: #8cb4e8;
      --theme-accent: #2a5298;
      --theme-accent-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    }
    body.theme-midnight {
      --theme-bg-primary: #0f0c29;
      --theme-bg-secondary: #1a1a3a;
      --theme-bg-tertiary: #302b63;
      --theme-border: #302b63;
      --theme-text-primary: #e0e0e0;
      --theme-text-secondary: #9090a0;
      --theme-accent: #764ba2;
      --theme-accent-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    }
    body.theme-fire {
      --theme-bg-primary: #1a0a0a;
      --theme-bg-secondary: #2d1515;
      --theme-bg-tertiary: #4a1f1f;
      --theme-border: #4a1f1f;
      --theme-text-primary: #fff0f0;
      --theme-text-secondary: #d0a0a0;
      --theme-accent: #f5af19;
      --theme-accent-gradient: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
    }
    body {
      background-color: var(--theme-bg-primary) !important;
      color: var(--theme-text-primary);
    }
    
    .premium-container {
      max-width: 900px;
      margin: 0 auto;
      padding: 20px;
      padding-bottom: 80px;
    }
    
    .premium-hero {
      text-align: center;
      padding: 40px 20px;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      border-radius: 20px;
      margin-bottom: 30px;
      border: 1px solid #333;
    }
    
    .premium-hero h1 {
      font-size: 2.5rem;
      margin-bottom: 10px;
      background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .premium-hero p {
      color: #aaa;
      font-size: 1.1rem;
    }
    
    .premium-badge {
      display: inline-block;
      background: linear-gradient(90deg, #ffd700, #ffaa00);
      color: #000;
      padding: 8px 20px;
      border-radius: 20px;
      font-weight: bold;
      font-size: 0.9rem;
      margin-top: 15px;
    }
    
    .premium-locked {
      text-align: center;
      padding: 60px 20px;
      background: var(--theme-bg-secondary);
      border-radius: 20px;
      border: 1px solid var(--theme-border);
    }
    
    .premium-locked h2 {
      color: var(--theme-text-primary);
      margin-bottom: 15px;
    }
    
    .premium-locked p {
      color: var(--theme-text-secondary);
      margin-bottom: 20px;
    }
    
    .premium-locked .lock-icon {
      font-size: 4rem;
      margin-bottom: 20px;
    }
    
    .premium-locked a {
      display: inline-block;
      background: var(--theme-accent-gradient);
      color: white;
      padding: 12px 30px;
      border-radius: 25px;
      text-decoration: none;
      font-weight: bold;
    }
    
    .feature-card {
      background: var(--theme-bg-secondary);
      border: 1px solid var(--theme-border);
      border-radius: 16px;
      padding: 25px;
      margin-bottom: 20px;
      transition: all 0.3s ease;
    }
    
    .feature-card:hover {
      border-color: var(--theme-accent);
      transform: translateY(-3px);
      box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    }
    
    .feature-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }
    
    .feature-icon {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }
    
    .feature-icon.group { background: var(--theme-accent-gradient); }
    .feature-icon.theme { background: linear-gradient(135deg, #f093fb, #f5576c); }
    .feature-icon.bg { background: linear-gradient(135deg, #11998e, #38ef7d); }
    .feature-icon.username { background: linear-gradient(135deg, #00c6ff, #0072ff); }
    .feature-icon.video { background: linear-gradient(135deg, #ee0979, #ff6a00); }
    .feature-icon.pfp { background: linear-gradient(135deg, #667eea, #764ba2); }
    
    .feature-title {
      color: var(--theme-text-primary);
      font-size: 1.3rem;
      font-weight: bold;
    }
    
    .feature-desc {
      color: var(--theme-text-secondary);
      margin-bottom: 20px;
      line-height: 1.6;
    }
    
    .preview-box {
      background: var(--theme-bg-primary);
      border: 1px solid var(--theme-border);
      border-radius: 12px;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }
    
    .preview-label {
      position: absolute;
      top: 10px;
      left: 10px;
      background: var(--theme-accent);
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: bold;
    }
    
    .preview-note {
      text-align: center;
      color: var(--theme-text-secondary);
      font-size: 0.85rem;
      margin-top: 15px;
      padding: 10px;
      background: var(--theme-bg-tertiary);
      border-radius: 8px;
    }
    .preview-note strong {
      color: var(--theme-accent);
    }
    
    .group-preview {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .group-preview-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--theme-border);
    }
    
    .group-avatar-preview {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--theme-accent-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
    }
    
    .group-info-preview h4 {
      color: var(--theme-text-primary);
      margin: 0;
      font-size: 0.95rem;
    }
    
    .group-info-preview span {
      color: var(--theme-text-secondary);
      font-size: 0.8rem;
    }
    
    .group-members-preview {
      display: flex;
      gap: 5px;
    }
    
    .member-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #333;
      border: 2px solid var(--theme-bg-primary);
    }
    
    .member-count {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--theme-accent);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 0.7rem;
      font-weight: bold;
    }
    
    .theme-preview-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }
    
    .theme-preview-item {
      aspect-ratio: 1;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
    }
    
    .theme-preview-item:hover {
      transform: scale(1.1);
    }
    
    .theme-preview-item.active {
      border-color: white;
      box-shadow: 0 0 10px rgba(255,255,255,0.5);
    }
    
    .bg-preview-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
    
    .bg-preview-item {
      aspect-ratio: 16/9;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
      overflow: hidden;
      position: relative;
    }
    
    .bg-preview-item:hover {
      transform: scale(1.05);
    }
    
    .bg-preview-item.active {
      border-color: white;
      box-shadow: 0 0 10px rgba(255,255,255,0.5);
    }
    
    .bg-preview-item::after {
      content: "✓";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0,0,0,0.7);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: none;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: bold;
    }
    
    .bg-preview-item.active::after {
      display: flex;
    }
    
    .username-preview {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 15px;
      background: var(--theme-bg-tertiary);
      border-radius: 8px;
    }
    
    .username-preview-pfp {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--theme-accent-gradient);
    }
    
    .username-preview-info h4 {
      color: var(--theme-text-primary);
      margin: 0;
      font-size: 1rem;
    }
    
    .username-preview-info span {
      color: var(--theme-accent);
      font-size: 0.9rem;
    }
    
    .video-preview-container {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    
    .video-preview-item {
      text-align: center;
    }
    
    .video-preview-icon {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      margin: 0 auto 8px;
    }
    
    .video-preview-icon.post {
      background: linear-gradient(135deg, #667eea, #764ba2);
    }
    
    .video-preview-label {
      color: var(--theme-text-secondary);
      font-size: 0.8rem;
    }
    
    .pfp-preview-container {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    
    .pfp-preview-item {
      text-align: center;
    }
    
    .pfp-preview-img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--theme-accent);
      margin-bottom: 8px;
    }
    
    .pfp-preview-label {
      color: var(--theme-text-secondary);
      font-size: 0.8rem;
    }
    
    .pfp-preview-img.gif {
      border-color: #f093fb;
    }
    
    .pfp-preview-img.video {
      border-color: #f5576c;
    }
    
    .coming-soon {
      display: inline-block;
      background: var(--theme-bg-tertiary);
      color: var(--theme-text-secondary);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.8rem;
      margin-top: 10px;
    }
    
    .save-settings-btn {
      display: block;
      width: 100%;
      padding: 15px;
      margin-top: 20px;
      border-radius: 12px;
      border: none;
      background: var(--theme-accent-gradient);
      color: white;
      font-size: 1.1rem;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.2s;
    }
    
    .save-settings-btn:hover {
      transform: scale(1.02);
    }
    
    .save-settings-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    .save-message {
      text-align: center;
      margin-top: 10px;
      padding: 10px;
      border-radius: 8px;
      display: none;
    }
    
    .save-message.success {
      display: block;
      background: rgba(76, 175, 80, 0.2);
      color: #4CAF50;
    }
    
    .save-message.error {
      display: block;
      background: rgba(244, 67, 54, 0.2);
      color: #f44336;
    }
    
    .premium-footer {
      text-align: center;
      padding: 30px;
      color: var(--theme-text-secondary);
    }
    
    .premium-footer a {
      color: var(--theme-accent);
      text-decoration: none;
    }
    

    
    .sidebar a {
      color: var(--theme-text-secondary) !important;
    }
    
    .sidebar a:hover {
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    }
    

    
    @media (max-width: 600px) {
      .premium-hero h1 {
        font-size: 1.8rem;
      }
      
      .theme-preview-grid {
        grid-template-columns: repeat(3, 1fr);
      }
      
      .bg-preview-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .custom-bg-upload {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--theme-border);
    }

    .custom-bg-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: var(--theme-bg-tertiary);
      border: 2px dashed var(--theme-border);
      border-radius: 10px;
      cursor: pointer;
      color: var(--theme-text-secondary);
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .custom-bg-label:hover {
      border-color: var(--theme-accent);
      color: var(--theme-accent);
    }

    .custom-bg-preview {
      position: relative;
      margin-top: 15px;
      display: inline-block;
    }

    .custom-bg-preview img {
      width: 120px;
      height: 70px;
      object-fit: cover;
      border-radius: 8px;
      border: 2px solid var(--theme-accent);
    }

    .remove-bg-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #f44336;
      color: white;
      border: none;
      cursor: pointer;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .remove-bg-btn:hover {
      background: #d32f2f;
    }

    .custom-bg-upload {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid var(--theme-border);
    }

    .custom-bg-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: var(--theme-bg-tertiary);
      border: 2px dashed var(--theme-border);
      border-radius: 10px;
      cursor: pointer;
      color: var(--theme-text-secondary);
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .custom-bg-label:hover {
      border-color: var(--theme-accent);
      color: var(--theme-accent);
    }

    .custom-bg-preview {
      position: relative;
      margin-top: 15px;
      display: inline-block;
    }

    .custom-bg-preview img {
      width: 120px;
      height: 70px;
      object-fit: cover;
      border-radius: 8px;
      border: 2px solid var(--theme-accent);
    }

    .remove-bg-btn {
      position: absolute;
      top: -8px;
      right: -8px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #f44336;
      color: white;
      border: none;
      cursor: pointer;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .remove-bg-btn:hover {
      background: #d32f2f;
    }

    .post {
      background: var(--theme-bg-secondary) !important;
      border: 1px solid var(--theme-border);
      border-radius: 30px;
      padding: 20px;
      margin-bottom: 15px;
      transition: all 0.3s ease;
    }

    .post:hover {
      border-color: var(--theme-accent);
      box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
    }

    .logo-text {
    display: none;
    font-size: 3.5rem;
    color: #000000;
    text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
    font-weight: normal;
    text-align: center;
    margin: 0px;
    font-family: sans-serif;
    }

    .sidebar-text {
    font-size: 1.5rem;
    color: #000000;
    text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
    font-weight: bold;
    text-align: center;
    margin: 0px;
    font-family: sans-serif;
    padding-bottom: 10px;
    }

    @media (max-width: 600px) {
      h1 {
        font-size: 2.5rem;
      }
      .premium-hero h1 {
        font-size: 1.8rem;
      }
    }

    .input-area {
        display: inline-block;
        border: solid;
        border-radius: 30px;
        background-color: var(--theme-bg-secondary) !important;
        border-color: #1d9bf0;
        padding: 10px;
        margin: 10px;
        position: relative;
        min-width: 430px;
        
    }

    .input-area textarea {
        font-family: sans-serif;
        resize: none;
        width: 97%;
        height: 150px;
        border: none;
        margin: 3px;
        margin-bottom: 0;
        background-color: var(--theme-bg-secondary) !important;
        color: var(--theme-text-primary) !important;
        outline: none;
        display: block;
    }


    .input-area .file-row {
        display: flex;
        align-items: center;
        padding: 0px;
        margin-bottom: 0px;
    }

    .input-area .custom-file-upload {
        position: relative;
        display: inline-block;
        justify-content: center;
        padding: 10px;
        width: 10px;
        height: 10px;
        background-color: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
        border: solid;
        border-color: #1d9bf0;
        border-radius: 50%;
        vertical-align: middle;

    }

    .input-area input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        z-index: 10;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .input-area .file-name {
        color: var(--theme-text-secondary);
        font-size: 0.85rem;
    }

    .input-area #postBtn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        text-decoration: none;
        background-color: #1d9bf0;
        border: hidden;
        color: white;
        height: 2rem;
        border-radius: 30px;
        width: 60px;
        cursor: pointer;
    }

    .input-area #postBtn:active {
        outline: auto;
    }

    .input-area .progress-bar {
        position: absolute;
        bottom: 50px;
        left: 15px;
        right: 85px;
        max-width: calc(100% - 100px);
    }

    @media (max-width: 768px) {
        .input-area {
            border-radius: 30px;
            min-width: auto;
            width: 100%;
            margin: 3px;
            height: 150px;
        }

        .input-area textarea {
            width: 95%;
        }
        
        
        .input-area .file-row {
            margin-bottom: 0px !important;
        }
        
        .input-area .custom-file-upload {
            width: 20px;
            height: 20px;
            font-size: 12px;
        }
        
        
        .input-area .progress-bar {
            bottom: 35px;
            right: 50px;
            max-width: calc(100% - 65px);
        }
    }

    .file {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        background-color: #1d9bf0;
        color: #000000;
        border: 2px solid #1d9bf0;
        border-radius: 50%;
        margin: 0px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .file:hover {
        background-color: #444444;
    }

    .file input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 10;
    }

    #add {
        font-size: 18px;
        font-weight: bold;
        color: #ffffff;
        pointer-events: none;
    }



    .input-area {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .preview-container {
        position: relative;
        bottom: 1px;
        left: 10px;
        right: auto;
        width: 60px;
        height: 60px;
        border: 2px solid #1d9bf0;
        border-radius: 8px;
        overflow: hidden;
    }
    #preview {
        width: auto;
        height: auto;
        object-fit: cover;
    }

    .removeBtn {
        position: absolute;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        background: none;
        columns: white;
        border-radius: 50%;
        font-size: 12px;
        align-items:center ;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
    }

    .preview-container {
      display: none; 
    }

    .preview-container img {
      max-width: 200px;
      max-height: 150px;
      border-radius: 8px;
    }

    .removeBtn {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 20px;
      height: 20px;
      background: rgba(255, 0, 0, 0.8);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .preview-container {
      display: none; 
      position: relative;
      bottom: 1px;
      left: 10px;
      right: auto;
      width: 60px;
      height: 60px;
      border: 2px solid #1d9bf0;
      border-radius: 8px;
      overflow: hidden;
    }

    .preview-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

  .premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    font-family: sans-serif;
    line-height: 1;
  }

  .premium-badge:hover::after {
    content: "/Premium Subscriber";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-top: 5px;
    z-index: 1000;
  }

  .username-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
  }

  .username {
    vertical-align: baseline !important;
    line-height: normal !important;
  }

  .post-skeleton {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
    height: 130px;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  .profile-page-container {
      background: var(--theme-bg-primary);
      min-height: 100vh;
      color: var(--theme-text-primary);
  }
  .profile-nav {
      background: #1d9bf0;
      padding: 15px 20px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      display: flex;
      align-items: center;
      color: #1d9bf0;
  }
  .profile-nav a {
      color: white;
      text-decoration: none;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: bold;
  }
        .pf-dm {
            background: #333;
            color: white;
            border: 1px solid #444;
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 14px;
            font-family: 'Calibri', sans-serif;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            width: min-content;
        }
        .pf-dm:hover {
            background: #444;
            border-color: dodgerblue;
        }
  .profile-banner {
      display: block;
      box-sizing: border-box;
      margin: 20px;
      margin-left: 2%;
      margin-right: 2%;
      width: 96%;
      height: 150px;
      background-color: #333;
      text-align: center;
      border: solid;
      border-radius: 30px;
      border-color: dodgerblue;
      overflow: hidden;
  }
  .profile-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  .profile-header-row {
      padding: 0 20px;
      position: relative;
  }
  .profile-info-block {
      display: flex;
      align-items: flex-end;
      gap: 20px;
  }
  .profile-page-pfp {
      width: 120px;
      height: 120px;
      margin-top: -60px;
      margin-left: 5%;
      border-radius: 50%;
      border: 4px solid var(--theme-accent);
      object-fit: cover;
      background-color: #333;
  }
  .profile-page-username {
      font-size: 28px;
      color: var(--theme-text-primary);
      margin-bottom: 30px;
      font-weight: 700;
  }
  .profile-bio-section {
      padding: 15px 20px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-left: 1%;
  }
  .profile-bio-text {
      color: var(--theme-text-secondary);
      font-size: 14px;
      line-height: 1.6;
  }
  .profile-action-btn {
            background: dodgerblue;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 14px;
            font-family: 'Calibri', sans-serif;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            width: 400px;
  }
  .profile-action-btn :hover {
            transform: translateY(-2px);
            background-color: #999;
  }
  .profile-stats-row {
      display: flex;
      gap: 20px;
      margin-bottom: 10px;
      font-size: 14px;
      color: var(--theme-text-secondary);
  }
  .profile-divider {
      border: none;
      height: 1px;
      background: var(--theme-border);
      margin: 10px 20px;
  }
  .profile-posts-header {
      text-align: center;
      padding: 20px;
  }
  .profile-posts-label {
      display: inline-block;
      color: var(--theme-text-primary);
      font-size: 15px;
      border-bottom: 2px solid var(--theme-text-secondary);
      padding-bottom: 5px;
  }

  #profilePageModal .modal-content {
      width: 100% !important;
      max-width: 100% !important;
      height: 100vh !important;
      margin: 0 !important;
      border-radius: 0 !important;
      overflow-y: auto !important;
  }

  #profileFollowBtn.following {
      background: var(--theme-text-secondary) !important;
      color: var(--theme-bg-primary) !important;
  }

  .banner-upload-section {
      margin: 15px 0;
      padding: 15px;
      background: var(--theme-bg-tertiary);
      border-radius: 10px;
  }
  .banner-upload-label {
      display: block;
      font-size: 0.9em;
      color: var(--theme-text-secondary);
      margin-bottom: 10px;
  }
  .banner-preview-container {
      position: relative;
      width: 100%;
      height: 80px;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid var(--theme-border);
      margin-bottom: 10px;
  }
  .banner-preview-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  .banner-preview-container .remove-banner-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(0,0,0,0.7);
      color: white;
      border: none;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  .banner-upload-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: var(--theme-accent);
      color: white;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.9em;
  }
  .banner-upload-btn:hover {
      opacity: 0.9;
  }
  .banner-upload-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }
  #bannerInput {
      display: none;
  }
  .banner-progress {
      display: none;
      margin-top: 10px;
  }
  .banner-progress .progress {
      height: 6px;
      background: var(--theme-border);
      border-radius: 3px;
      overflow: hidden;
  }
  .banner-progress .progress-fill {
      height: 100%;
      background: var(--theme-accent);
      width: 0%;
      transition: width 0.3s;
  }

  #profilePageModal {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  #profilePageModal .modal-content {
    background: var(--theme-bg-primary) !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
  }

  @media (max-width: 480px) {
      #profilePageModal .profile-banner {
          height: 120px !important;
      }
      
      #profilePageModal .profile-page-pfp {
          width: 100px !important;
          height: 100px !important;
          margin-top: -50px !important;
      }
      
      #profilePageModal .profile-page-username {
          font-size: 22px !important;
          margin-bottom: 0 !important;
      }
      
      #profilePageModal .profile-info-block {
          flex-direction: row !important;
          align-items: center !important;
          justify-content: flex-start;
          gap: 10px;
      }
      
      #profilePageModal #profileFollowBtn {
          width: 100% !important;
          margin-top: 10px;
          display: block;
      }
  }

  #profilePostsFeed {
    list-style: none !important;
    padding: 0 20px 20px !important;
    margin: 0 !important;
  }

  #profilePostsFeed li {
    list-style: none !important;
    list-style-type: none !important;
  }

  #profilePostsFeed {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #profilePostsFeed .post {
    margin: 0 15px 15px 15px !important;
    width: auto !important;
    max-width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }
  
  .profile-page-container .post {
    background: var(--theme-bg-secondary) !important;
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
  }
  
  .profile-page-container .post:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
  }


  @font-face {
    font-family: iran-sans;
    src: "./fonts/IRANSans.ttf";
    unicode-range: U+0600-06FF, U+FE70-FEFF, U+200C-200F
  }

    .scroll-top-btn {
      position: fixed;
      bottom: 60px; 
      right: 20px;
      width: 45px;
      height: 45px;
      background: var(--theme-accent-gradient);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: none; 
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      z-index: 99;
      transition: transform 0.2s ease, opacity 0.3s ease;
    }
    
    .scroll-top-btn:hover {
      transform: scale(1.1);
    }
    
    .scroll-top-btn svg {
      width: 24px;
      height: 24px;
      fill: white;
    }


    .unread-badge {
        background-color: #ff3b30;
        color: white;
        font-size: 0.75rem;
        font-weight: bold;
        border-radius: 12px;
        padding: 2px 6px;
        margin-left: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        line-height: 1;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        animation: pulseBadge 2s infinite;
    }

    @keyframes pulseBadge {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    #dm-link {
        position: relative; 
        display: inline-flex; 
        align-items: center;
        text-decoration: none;
    }

    .unread-badge {
        position: absolute;
        
        background-color: #ff3b30;
        color: white;
        font-size: 0.7rem; 
        font-weight: bold;
        border-radius: 10px; 
        padding: 2px 5px; 
        min-width: 16px;
        height: 16px;
        line-height: 12px; 
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        z-index: 10;
        
        animation: pulseBadge 2s infinite;
    }

    @keyframes pulseBadge {
        0% { transform: scale(1); }
        50% { transform: scale(1.15); }
        100% { transform: scale(1); }
    }
    .input-area {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          margin-bottom: 1rem;
          
    }
    .sidebar-item-active { color: var(--theme-accent); }



.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--theme-text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;

}

.sidebar a:hover {


  transform: translateX(4px);
}

.sidebar a.active,
.sidebar a.sidebar-item-active {
  background: linear-gradient(90deg, var(--theme-accent) 0%, transparent 100%);
  color: #fff;
  font-weight: 600;
}

.sidebar a.active::before,
.sidebar a.sidebar-item-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.sidebar .nav-icon-small {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

.sidebar img.nav-icon {
  margin-bottom: 2rem;
  margin-left: 0;
  width: 32px; 
  height: 32px;
}

.sidebar a[href="./settings.html"] {
  margin-top: auto;
  padding-top: 1rem;

}
.sidebar a.active .nav-icon-small,
.sidebar a.sidebar-item-active .nav-icon-small {
  stroke: white;
  fill: #ffffff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}
@media (max-width: 1320px) {
  .sidebar {
    display: none !important;
  }
  .logo-text {
    display: block;
  }

  .content-area {
    margin-left: 0 !important;
    width: 100%;
    padding: 2rem 2rem; 
  }

  .mobile-navbar {
    display: flex !important;
  }
}

.sidebar a.active,
.sidebar a.sidebar-item-active {
  background: linear-gradient(90deg, var(--theme-accent) 0%, transparent 100%);
  color: #ffffff !important; 
  font-weight: 600;
}

.sidebar a.active svg,
.sidebar a.sidebar-item-active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); 
}

.sidebar a.active::before,
.sidebar a.sidebar-item-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
}

.sidebar a:hover {

  color: #ffffff !important;
  transform: translateX(4px);
}
.sidebar a:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.nav-icon-small {
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.sidebar a:hover .nav-icon-small,
.mobile-navbar .nav-item:hover .nav-icon-small {

  filter: drop-shadow(0 0 8px var(--theme-accent, #ffffff)); 
  transform: scale(1.1); 
}

.sidebar a:hover,
.mobile-navbar .nav-item:hover {

  color: var(--theme-accent, #ffffff);
}

#profilePostsFeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem; 
    margin-bottom: 4rem;
}

.result-card.post-card {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
    background: var(--theme-card-hover);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.connection-status {
  position: fixed;
  top: 15px;
  right: 50px;
  background: var(--theme-glass); 
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--theme-glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.connection-status.online {
  background: rgba(76, 175, 80, 0.2); 
  border-color: rgba(76, 175, 80, 0.5);
}

.connection-status.offline {
  background: rgba(244, 67, 54, 0.2); 
  border-color: rgba(244, 67, 54, 0.5);
}

.connection-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-text-secondary);
}

.connection-status.online .status-dot {
  background-color: #4CAF50;
  box-shadow: 0 0 8px #4CAF50;
}

.connection-status.offline .status-dot {
  background-color: #F44336;
  box-shadow: 0 0 8px #F44336;
}

.spinner {
  width: 10px;
  height: 10px;
  border: 2px solid var(--theme-text-secondary);
  border-top-color: var(--theme-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feed-tabs-container {
  display: flex;
  width: 100%;
  gap: 12px; 
  padding: 8px;
  background: rgba(255, 255, 255, 0.03); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px; 
  margin-bottom: 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 
              0 4px 20px rgba(0, 0, 0, 0.15);
}

.feed-tab {
  flex: 1;
  background: transparent;
  padding: 12px 24px;
  color: var(--theme-text-secondary);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 24px; 
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

.feed-tab:hover {
  color: var(--theme-text-primary);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.feed-tab.active {
  color: #ffffff !important;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.15), 
              inset 0 1px 2px rgba(255, 255, 255, 0.4),
              inset 0 -4px 10px rgba(255, 255, 255, 0.05) !important;
  font-weight: 700;
}

.feed-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 50%;
  background: linear-gradient(
    to bottom, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-30deg);
  transition: 0.75s ease;
  pointer-events: none;
}

.feed-tab:hover::before {
  left: 100%;
  transition: 0.5s ease;
}



.slash-card {
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border);
  border-radius: 50;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  list-style: none; 
  width: auto !important; 
}

.slash-card:hover {
  border-color: var(--theme-accent);
  background: var(--theme-bg-tertiary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.slash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.slash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--theme-border);
  background: var(--theme-bg-tertiary);
}

.slash-meta {
  display: flex;
  flex-direction: column;
}

.slash-author-link {
  text-decoration: none;
  color: var(--theme-text-primary);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
  cursor: pointer;
}

.slash-author-link:hover {
  color: var(--theme-accent);
}

.slash-time {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
}

.slash-options {
  color: var(--theme-text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 8px;
}

.slash-content {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--theme-text-primary);
  margin-bottom: 1rem;
  word-break: break-word;
}

.slash-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--theme-border);
}

.slash-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-item svg { width: 16px; height: 16px; fill: currentColor; }

.slash-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--theme-text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.action-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
.action-btn:hover { background: var(--theme-bg-tertiary); color: var(--theme-text-primary); }

.action-btn.liked { color: #ef4444; }
.action-btn.liked svg { fill: #ef4444; stroke: none; }
.action-btn.re-slashed { color: #10b981; }
.action-btn.re-slashed svg { stroke: #10b981; }
.action-btn.saved { color: var(--theme-text-primary); }
.action-btn.saved svg { fill: var(--theme-text-primary); stroke: none; }

.post-menu-container .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: none;
    z-index: 100;
    min-width: 140px;
    overflow: hidden;
}
.post-menu-container .dropdown-menu.show {
    display: block;
}
.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    display: block;
    color: var(--theme-text-primary);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: var(--theme-bg-tertiary);
}
.dropdown-item.delete-option {
    color: #ff4a4a;
}

.user-own-reply {
  border-left: 3px solid var(--theme-accent);
  background: var(--theme-bg-tertiary) !important;
  position: relative;
  margin-bottom: 15px;
}

.user-own-reply::before {
  content: "Your reply";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--theme-accent);
  color: white;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 12px;
  z-index: 1;
  font-weight: normal;
}

.post[data-is-own="true"] {
  background: linear-gradient(90deg, var(--theme-bg-secondary) 0%, var(--theme-bg-tertiary) 100%);
}

.you-badge {
  background: var(--theme-accent);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  font-weight: normal;
  display: inline-block;
  vertical-align: middle;
}


.profile-card.premium-custom {
  border-width: 2px;
  border-style: solid;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.profile-card.premium-custom .card-avatar {
  border-width: 3px;
  border-style: solid;
}

.premium-card-settings {
  margin: 15px 0;
  padding: 15px;
  background: var(--theme-bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--theme-border);
}

.premium-card-settings h4 {
  margin: 0 0 12px 0;
  color: var(--theme-text-primary);
  font-size: 0.95rem;
}

.premium-card-settings .color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.premium-card-settings .color-picker-row label {
  color: var(--theme-text-secondary);
  font-size: 0.85rem;
  min-width: 100px;
}

.premium-card-settings .color-picker-row input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--theme-border);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}

.premium-card-settings .color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.premium-card-settings .color-picker-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.premium-card-settings .card-preview {
  margin-top: 15px;
  padding: 15px;
  border-radius: 12px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.premium-card-settings .card-preview .preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-accent-gradient);
  border: 3px solid var(--theme-accent);
  flex-shrink: 0;
}

.premium-card-settings .card-preview .preview-info {
  flex: 1;
}

.premium-card-settings .card-preview .preview-info .preview-name {
  font-weight: bold;
  color: var(--theme-text-primary);
  font-size: 0.95rem;
}

.premium-card-settings .card-preview .preview-info .preview-bio {
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.premium-card-settings .reset-card-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.premium-card-settings .reset-card-btn:hover {
  border-color: var(--theme-accent);
  color: var(--theme-text-primary);
}

.profile-card.custom-border-color {
  border-color: var(--card-border-color, var(--theme-border));
}

.profile-card.custom-bg-color {
  background-color: var(--card-bg-color, var(--theme-bg-secondary));
}

.profile-card.custom-text-color .card-username {
  color: var(--card-text-color, var(--theme-text-primary));
}

.profile-card.custom-accent-color .card-avatar {
  border-color: var(--card-accent-color, var(--theme-accent));
}

.profile-card.custom-accent-color .card-follow-btn {
  background: var(--card-accent-color, var(--theme-accent));
}

.profile-card .card-username.admin-username {
  color: #ff0000 !important;
}

.profile-card .premium-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: bold;
  margin-left: 6px;
  vertical-align: middle;
}

#awesomeGameModal {
  animation: fadeInGame 0.3s ease;
}

@keyframes fadeInGame {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#gameCanvas {
  image-rendering: auto;
  background: radial-gradient(ellipse at center, #0a0a2e, #000000);
  box-shadow: 0 0 40px rgba(29, 155, 240, 0.1), inset 0 0 40px rgba(29, 155, 240, 0.03);
}

#gameLives svg {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(255, 71, 87, 0.3));
}

#gameLives svg[fill="none"] {
  filter: none;
  opacity: 0.4;
}

#awesomeGameModal button:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

#awesomeGameModal .close-button {
  transition: transform 0.3s ease;
}

#awesomeGameModal .close-button:hover {
  transform: rotate(90deg);
}


.post-toolbar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toolbar-buttons {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.toolbar-btn {
  background: transparent;
  border: none;
  color: var(--theme-text-secondary);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: var(--theme-bg-tertiary);
  color: var(--theme-accent);
  transform: scale(1.05);
}

.toolbar-btn:active {
  transform: scale(0.95);
}

.toolbar-btn svg {
  width: 20px;
  height: 20px;
}

.picker-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 380px;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 1000;
  overflow: hidden;
  flex-direction: column;
  max-height: min(380px, 70vh);
}

.picker-popup.show {
  display: flex;
}

@media (max-height: 600px) {
  .picker-popup {
    max-height: 250px;
    top: auto;
    bottom: calc(100% + 8px);
  }
}

@media (max-width: 480px) {
  .picker-popup {
    width: calc(100% - 20px);
    left: 10px;
    max-height: 300px;
  }
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.close-picker {
  background: none;
  border: none;
  color: var(--theme-text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.close-picker:hover {
  color: var(--theme-text-primary);
}

.picker-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--theme-border);
  flex-shrink: 0;
}

.picker-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid var(--theme-border);
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
  font-size: 0.85rem;
  outline: none;
}

.picker-search input:focus {
  border-color: var(--theme-accent);
}

.picker-search input::placeholder {
  color: var(--theme-text-secondary);
}

#emojiPickerContainer {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  aspect-ratio: 1;
}

.emoji-item:hover {
  background: var(--theme-bg-tertiary);
  transform: scale(1.2);
}

#gifPickerContainer {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.gif-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gif-item {
  width: 138px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  background: var(--theme-bg-tertiary);
}

.gif-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-loading {
  text-align: center;
  padding: 30px 0;
  color: var(--theme-text-secondary);
  font-size: 0.9rem;
}

.gif-preview-container {
  position: relative;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 200px;
  border: 2px solid var(--theme-accent);
}

.gif-preview-container img {
  width: 100%;
  height: auto;
  display: block;
}

.gif-preview-container .remove-gif-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gif-preview-container .remove-gif-btn:hover {
  background: rgba(255,0,0,0.8);
  transform: scale(1.1);
}

.input-area {
  position: relative;
}

@media (max-height: 500px) {
  .picker-popup {
    max-height: 200px;
  }
  .emoji-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .gif-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.poll-creator {
  display: none;
  padding: 12px;
  background: var(--theme-bg-tertiary);
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid var(--theme-border);
}

.poll-creator.show {
  display: block;
}

.poll-creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--theme-text-primary);
  font-weight: 600;
}

.poll-option-input {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}

.poll-option-input input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  font-size: 0.9rem;
  outline: none;
}

.poll-option-input input:focus {
  border-color: var(--theme-accent);
}

.poll-option-remove {
  background: transparent;
  border: none;
  color: var(--theme-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.poll-option-remove:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.poll-creator-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.poll-creator-actions button {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.poll-add-option-btn {
  background: var(--theme-bg-secondary);
  color: var(--theme-text-secondary);
  border: 1px solid var(--theme-border) !important;
}

.poll-add-option-btn:hover {
  border-color: var(--theme-accent) !important;
  color: var(--theme-text-primary);
}

.poll-create-btn {
  background: var(--theme-accent);
  color: white;
}

.poll-create-btn:hover {
  opacity: 0.9;
}

.poll-creator-options {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.poll-creator-options label {
  color: var(--theme-text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.poll-creator-options select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--theme-border);
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
}

.poll-option-count {
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
  margin-top: 4px;
}

.poll-preview-container {
  display: none;
  margin-top: 8px;
}

.poll-preview {
  background: var(--theme-bg-tertiary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 12px;
}

.poll-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--theme-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.poll-preview-remove {
  background: transparent;
  border: none;
  color: var(--theme-text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}

.poll-preview-remove:hover {
  color: #ff4444;
}

.poll-preview-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.poll-preview-option {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--theme-text-primary);
  font-size: 0.9rem;
}

.poll-preview-number {
  color: var(--theme-text-secondary);
  font-weight: bold;
}

.poll-preview-footer {
  display: flex;
  justify-content: space-between;
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border);
}

.poll-display {
  background: var(--theme-bg-tertiary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}

.poll-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--theme-text-secondary);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 4px;
}

.poll-display-header .poll-total-votes {
  font-size: 0.8rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--theme-bg-secondary);
  border: 1px solid transparent;
  position: relative;
  flex-wrap: wrap;
}

.poll-option:hover:not([style*="cursor: default"]) {
  border-color: var(--theme-border);
}

.poll-option.voted {
  border-color: var(--theme-accent);
  background: var(--theme-bg-secondary);
}

.poll-option.voted .poll-option-label {
  color: var(--theme-accent);
}

.poll-option.voted .poll-option-check {
  color: var(--theme-accent);
}

.poll-option-check {
  font-size: 14px;
  min-width: 20px;
  color: var(--theme-text-secondary);
}

.poll-option-label {
  flex: 1;
  color: var(--theme-text-primary);
  font-size: 0.9rem;
  min-width: 60px;
}

.poll-option-bar-container {
  flex: 1;
  height: 8px;
  background: var(--theme-bg-primary);
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
}

.poll-option-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: var(--theme-accent-gradient);
}

.poll-option-percentage {
  min-width: 36px;
  text-align: right;
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.poll-option.voted .poll-option-percentage {
  color: var(--theme-accent);
}

.poll-expired {
  color: #ff6b6b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.poll-expired .poll-expired-icon {
  font-size: 14px;
}

#pollToggleBtn {
  background: transparent;
  border: none;
  color: var(--theme-text-secondary);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

#pollToggleBtn:hover {
  background: var(--theme-bg-tertiary);
  color: var(--theme-accent);
}

.poll-multiple-indicator {
  font-size: 0.7rem;
  color: var(--theme-text-secondary);
  background: var(--theme-bg-primary);
  padding: 2px 8px;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .poll-creator-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .poll-creator-options {
    flex-wrap: wrap;
  }
  
  .poll-option {
    flex-wrap: wrap;
  }
  
  .poll-option-bar-container {
    flex-basis: 100%;
    order: 2;
  }
  
  .poll-option-percentage {
    order: 3;
  }
}


@media (max-width: 768px) {
  .input-area {
    border-radius: 30px;
    min-width: auto !important;
    width: 100% !important;
    margin: 3px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    position: relative !important;
    height: auto !important;
    min-height: 150px !important;
  }

  .input-area textarea {
    width: 100% !important;
    height: 100px !important;
    min-height: 80px !important;
    padding-right: 60px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    margin: 0 !important;
  }

  .input-area .post-toolbar {
    width: 100% !important;
  }

  .input-area .toolbar-buttons {
    display: flex !important;
    gap: 4px !important;
    padding: 4px 0 !important;
    flex-wrap: wrap !important;
  }

  .input-area .toolbar-btn {
    padding: 6px 8px !important;
    font-size: 14px !important;
  }

  .input-area .toolbar-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .input-area .file-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
  }

  .input-area .file {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .input-area .file #add {
    font-size: 14px !important;
  }

  .input-area #postBtn {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 40px !important;
    margin-top: 8px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
  }

  .input-area .progress-bar {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .input-area .preview-container {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
  }

  .input-area .gif-preview-container {
    max-width: 120px !important;
  }

  .input-area .gif-preview-container img {
    max-width: 120px !important;
  }

  .picker-popup {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 70vh !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 9999 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .picker-popup .picker-header {
    padding: 12px 16px !important;
  }

  .picker-popup .picker-search {
    padding: 8px 12px !important;
  }

  .picker-popup .picker-search input {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }

  #emojiPickerContainer {
    max-height: 40vh !important;
    padding: 6px !important;
  }

  .emoji-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
  }

  .emoji-item {
    font-size: 28px !important;
    padding: 4px !important;
    min-height: 44px !important;
  }

  #gifPickerContainer {
    max-height: 40vh !important;
    padding: 6px !important;
  }

  .gif-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .gif-item {
    width: 220px !important;
    aspect-ratio: 16/9 !important;
  }

  .close-picker {
    font-size: 24px !important;
    padding: 0 8px !important;
  }

  .picker-popup.show {
    display: flex !important;
  }

  .picker-popup::before {
    content: '';
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
}

@media (max-width: 480px) {
  .input-area textarea {
    height: 80px !important;
    min-height: 60px !important;
    font-size: 13px !important;
  }

  .input-area .toolbar-btn {
    padding: 4px 6px !important;
  }

  .input-area .toolbar-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .emoji-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .emoji-item {
    font-size: 24px !important;
    min-height: 40px !important;
  }

  .gif-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .picker-popup {
    max-height: 65vh !important;
  }
}

.post-toolbar {
  position: relative !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  body.picker-open .picker-popup.show::before {
    display: block;
  }
}

.feed-scroll-top-btn {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(29, 155, 240, 0.2);
  z-index: 98;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: floatUp 2s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
    opacity: 4;
    transform: translateX(0);
}

.feed-scroll-top-btn:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(29, 155, 240, 0.3);
}

.feed-scroll-top-btn:active {
  transform: translateX(-50%) scale(0.9);
}

.feed-scroll-top-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes floatUp {
  0%, 100% { 
    transform: translateX(-50%) translateY(0);
  }
  50% { 
    transform: translateX(-50%) translateY(-6px);
  }
}

.feed-scroll-top-btn.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

@media (max-width: 768px) {
  .feed-scroll-top-btn {
    bottom: 80px;
    width: 44px;
    height: 44px;
  }
  
  .feed-scroll-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .feed-scroll-top-btn {
    bottom: 70px;
    width: 40px;
    height: 40px;
  }
  
  .feed-scroll-top-btn svg {
    width: 18px;
    height: 18px;
  }
}

#postModal .input-area textarea,
#postModal .input-area {
  box-shadow: none !important;
}

#postModal .modal-content .input-area {
  box-shadow: none !important;
}

#postModal textarea {
  box-shadow: none !important;
}

#postModal .post-toolbar {
  box-shadow: none !important;
}

#postModalPostBtn {
  background-color: #1d9bf0 !important;
  border: none !important;
  border-radius: 30px !important;
  color: white !important;
  padding: 10px 24px !important;
  font-size: 0.95rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.2s !important;
  min-width: 80px !important;
  box-shadow: none !important;
}

#postModalPostBtn:hover {
  background-color: #1a8cd8 !important;
  transform: scale(1.02) !important;
}

#postModalPostBtn:active {
  transform: scale(0.98) !important;
}

#postModalPostBtn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

#postModalPostBtn {
  background-color: #1d9bf0 !important;
  border: none !important;
  border-radius: 30px !important;
  color: white !important;
  padding: 6px 20px !important;
  font-size: 0.9rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.2s !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

#postModalPostBtn:hover {
  background-color: #1a8cd8 !important;
  transform: scale(1.02) !important;
}

#postModalPostBtn:active {
  transform: scale(0.98) !important;
}

#postModalPostBtn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

#postModal .file {
  width: 32px !important;
  height: 32px !important;
  background-color: #1d9bf0 !important;
  border: 2px solid #1d9bf0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

#postModal .file:hover {
  background-color: #1a8cd8 !important;
}

@media (max-width: 768px) {
  .slash-footer {
    flex-direction: column !important;
    gap: 10px !important;
    padding-top: 12px !important;
  }

  .slash-stats {
    display: flex !important;
    gap: 12px !important;
    font-size: 0.75rem !important;
  }

  .slash-actions.action-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    width: 100% !important;
    justify-content: space-around !important;
  }

  .slash-actions .action-group {
    flex: 1 !important;
    min-width: 40px !important;
    max-width: 80px !important;
  }

  .slash-actions .action-btn {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    border: none !important;
    color: var(--theme-text-secondary) !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .slash-actions .action-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  .slash-actions .action-btn .action-count {
    font-size: 0.7rem !important;
    min-width: 12px !important;
  }

  .slash-actions .action-btn.liked {
    color: #ef4444 !important;
  }
  .slash-actions .action-btn.liked svg {
    fill: #ef4444 !important;
    stroke: none !important;
  }
  .slash-actions .action-btn.re-slashed {
    color: #10b981 !important;
  }
  .slash-actions .action-btn.saved {
    color: var(--theme-text-primary) !important;
  }
  .slash-actions .action-btn.saved svg {
    fill: var(--theme-text-primary) !important;
    stroke: none !important;
  }

  .slash-header {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .slash-header .slash-meta {
    flex: 1 !important;
    min-width: 100px !important;
  }

  .slash-header .slash-author-link {
    font-size: 0.85rem !important;
  }

  .slash-header .slash-time {
    font-size: 0.7rem !important;
  }

  .slash-header .post-follow-btn {
    padding: 2px 10px !important;
    font-size: 10px !important;
    margin-left: auto !important;
  }

  .slash-header .post-menu-container {
    margin-left: auto !important;
  }

  .slash-content {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .slash-content p.message {
    font-size: 0.9rem !important;
  }

  .slash-content img,
  .slash-content video {
    max-width: 100% !important;
    border-radius: 8px !important;
  }

  .post.user-own-reply {
    padding: 12px !important;
  }
}

@media (max-width: 480px) {
  .slash-actions.action-bar {
    gap: 2px !important;
  }

  .slash-actions .action-group {
    min-width: 32px !important;
    max-width: 60px !important;
  }

  .slash-actions .action-btn {
    padding: 4px 4px !important;
    font-size: 0.65rem !important;
  }

  .slash-actions .action-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .slash-actions .action-btn .action-count {
    font-size: 0.6rem !important;
  }

  .slash-header .slash-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  .slash-header .slash-author-link {
    font-size: 0.8rem !important;
  }

  .slash-header .slash-time {
    font-size: 0.6rem !important;
  }

  .slash-content {
    font-size: 0.85rem !important;
  }

  .slash-content p.message {
    font-size: 0.85rem !important;
  }

  .stat-item {
    font-size: 0.65rem !important;
  }

  .stat-item svg {
    width: 12px !important;
    height: 12px !important;
  }
}

@media (max-width: 768px) {
  .post,
  .slash-card {
    margin: 0 0 12px 0 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #feed {
    padding: 0 8px !important;
  }

  .post [style*="display: flex"][style*="gap: 6px"] {
    font-size: 0.65rem !important;
  }

  .post [style*="display: flex"][style*="gap: 6px"] svg {
    width: 12px !important;
    height: 12px !important;
  }

  .verified-icon-container img {
    width: 14px !important;
    height: 14px !important;
  }

  .premium-badge {
    font-size: 0.5rem !important;
    padding: 1px 4px !important;
    margin-left: 4px !important;
  }
}

@media (max-width: 360px) {
  .slash-actions .action-group {
    min-width: 28px !important;
    max-width: 48px !important;
  }

  .slash-actions .action-btn {
    padding: 3px 2px !important;
    font-size: 0.55rem !important;
  }

  .slash-actions .action-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  .post,
  .slash-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .slash-header .slash-avatar {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 768px) {
  .feed-tabs-container {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .feed-tab {
    flex: 1 !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    border-radius: 20px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: var(--theme-text-secondary) !important;
    font-weight: 500 !important;
  }

  .feed-tab.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 700 !important;
  }

  .feed-tab:hover {
    color: var(--theme-text-primary) !important;
    background: rgba(255, 255, 255, 0.07) !important;
  }
}

@media (max-width: 480px) {
  .feed-tabs-container {
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
  }

  .feed-tab {
    padding: 8px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .premium-container {
    padding: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #feed {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
}

@media (max-width: 1320px) {
  .container {
    padding-bottom: 80px !important;
  }
  
  .premium-container {
    padding-bottom: 80px !important;
  }
  
  #feed {
    padding-bottom: 80px !important;
    margin-bottom: 0 !important;
  }
  
  .container p:last-child,
  .container > p:last-of-type {
    margin-bottom: 80px !important;
    padding-bottom: 10px !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .post,
  .slash-card {
    margin-bottom: 15px !important;
  }
  
  .feed-scroll-top-btn {
    bottom: 90px !important;
  }
}

.sidebar {
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 16px !important;
  border-radius: 24px !important;
  max-height: 90vh !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  overflow-y: auto !important;
}

