
:root {
  /* Light Theme Colors */
  --bg-primary: #f8faff;
  --bg-secondary: #f0f4f8;
  --bg-tertiary: #e8ecf0;
  --text-primary: #1a1a1a;
  --text-secondary: #5f6368;
  --border-color: #e0e4e8;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --rainbow-red: #ff0000;
  --rainbow-orange: #ff7f00;
  --rainbow-yellow: #ffff00;
  --rainbow-green: #00ff00;
  --rainbow-blue: #0000ff;
  --rainbow-indigo: #4b0082;
  --rainbow-violet: #9400d3;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --glass-bg: rgba(26, 26, 26, 0.3);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --rainbow-red: #ff0000;
  --rainbow-orange: #ff7f00;
  --rainbow-yellow: #ffff00;
  --rainbow-green: #00ff00;
  --rainbow-blue: #0000ff;
  --rainbow-indigo: #4b0082;
  --rainbow-violet: #9400d3;
}
html,body{
  width:100%;
  height:100%;
  margin: 0;
    padding: 0;
}
  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
  }



  /* Rainbow Bar */
  .rainbow-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
      #ff0000 0%, 
      #ff8000 16.66%, 
      #ffff00 33.33%, 
      #00ff00 50%, 
      #0080ff 66.66%, 
      #8000ff 83.33%, 
      #ff0080 100%);
    z-index: 2000;
    animation: rainbow-move 3s linear infinite;
  }

  @keyframes rainbow-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

  body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    transition: all 0.3s ease;
    
    /* Complex background gradients */
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 200, 200, 0.4), transparent 40%),
        radial-gradient(circle at 70% 40%, rgba(200, 255, 250, 0.3), transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(220, 200, 255, 0.3), transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 200, 0.3), transparent 50%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(240, 240, 255, 0.3)),
        linear-gradient(45deg, rgba(200, 255, 220, 0.2), rgba(255, 200, 255, 0.2)),
        #f5f5f5;
    background-blend-mode: screen;
}

[data-theme="dark"] body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(135, 206, 250, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 149, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}


  .header {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 0 32px;
    z-index: 1000;
  }

  .main-content {

    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-top:74px!important;/* prevent body overflow */
    box-sizing:border-box;

  }

  .content-section {
    max-width: 800px;
    width: 100%;
    height:100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
  }

  .content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    box-sizing:border-box;
  }

  /* Home Page Specific Styles */
  .home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    box-sizing:border-box;
    height:100%;
  }

  /* Home Logo Container */
  .home-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
  }

  .home-logo-container figure {
    position: relative;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 0;
  }

  #main-dobble {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
  }
  
  /* Mobile: Make logo 50% smaller */
  @media (max-width: 768px) {
    #main-dobble {
      max-width: 180px;
    }
    
    .home-logo-container {
      margin-bottom: 1.5rem;
    }
    
    /* Add margin under explore mode button on mobile */
    .mode-selection > a:nth-child(3) {
      margin-bottom: 30px;
    }
  }

  #home-logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask-image: url('/media/logo.png');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-image: url('/media/logo.png');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    pointer-events: none;
    z-index: 2;
  }

  /* Home Avatar Selection Styles */
  .home-avatar-selection-wrapper {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .avatar-selection-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .profile-picture-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px var(--shadow-light);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 12px;
    box-sizing: border-box;
  }

  .profile-picture-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-light);
    border-color: var(--rainbow-blue);
  }

  .profile-picture-placeholder i {
    font-size: 2rem;
    color: var(--text-secondary);
  }

  .default-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    padding: 4px;
  }

  .upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--rainbow-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(135, 206, 250, 0.4);
    border: 3px solid var(--glass-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
  }

  .upload-overlay:hover {
    background: var(--rainbow-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.6);
  }

  .upload-overlay i {
    font-size: 1.2rem;
    color: white;
  }

  .avatar-nav-btn {
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
  }

  .avatar-nav-btn:hover {
    background: var(--rainbow-blue);
    border-color: var(--rainbow-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.4);
  }

  .avatar-nav-btn:active {
    transform: scale(0.95);
  }

  .avatar-nav-btn i {
    pointer-events: none;
  }

  /* Avatar Grid Modal */
  .avatar-grid-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
  }

  .avatar-grid-modal.show {
    display: flex;
  }

  .avatar-grid-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .avatar-grid-container {
    display: block;
  }

  .avatar-grid-container.hidden {
    display: none;
  }

  .avatar-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .avatar-grid-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
  }

  .avatar-grid-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .avatar-grid-close:hover {
    background: var(--glass-border);
    color: var(--text-primary);
  }

  .avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .avatar-grid-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    padding: 8px;
    background: var(--glass-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .avatar-grid-item:hover {
    border-color: var(--rainbow-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.4);
  }

  .avatar-grid-item.selected {
    border-color: var(--rainbow-blue);
    background: rgba(135, 206, 250, 0.1);
    box-shadow: 0 0 0 2px var(--rainbow-blue);
  }

  .avatar-grid-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
  }

  /* Mobile responsive for avatar selection */
  @media (max-width: 768px) {
    .avatar-selection-container {
      gap: 0.75rem;
    }

    .avatar-nav-btn {
      width: 35px;
      height: 35px;
      font-size: 0.9rem;
    }

    .profile-picture-placeholder {
      width: 120px;
      height: 120px;
      padding: 10px;
    }

    .upload-overlay {
      width: 35px;
      height: 35px;
    }
  }

  /* Enhanced Mode Selection Styling - Fixed Width Issues */
  .mode-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .mode-selection > a {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 200px;
    text-decoration: none;
  }

  .mode-button {
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: lowercase;
    min-width: 140px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    position: relative;
    overflow: hidden;
  }

  .mode-button i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 110px;
    opacity: 0.15;
    filter: none;
    text-shadow: none;
    box-shadow: none;
    z-index: 0;
  }

  .mode-button span {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 18px;
  }

  .mode-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .mode-button:hover::before {
    left: 100%;
  }

  .mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
  }

  /* Enhanced Theme Toggle */
  .theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .theme-toggle button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .theme-toggle button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Login Button */
  .login-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }

  .login-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .login-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }

  /* Content Sections */
  .content-section {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
  }

  .content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  /* Collections Page */
  .collections-page h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
  }

  .filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btnc {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btnc:hover {
    transform: scale(1.1);
  }

  .btnc img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  /* History Page */
  .history-page h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
  }

  .History {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .History input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
  }

  .hisotry-list {
    list-style: none;
    padding: 0;
  }

  .hisotry-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .hisotry-list img {
    width: 30px;
    height: 30px;
    cursor: pointer;
  }

  .delete {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .hisotry-list iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
  }

  /* Profile Page */
  .profile-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 10px;
  }

  /* Profile Picture Container (just the circle, no box) */
  .profile-picture-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
  }

  .profile-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
  }

  .image-upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
  }

  .profile-image-container:hover .image-upload-overlay {
    opacity: 1;
    transform: scale(1);
  }

  .upload-btn {
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .upload-btn:hover {
    transform: scale(1.1);
  }

  .profile-info {
    text-align: left;
  }

  .profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
  }

  .profile-info h2:hover {
    color: var(--accent-color);
  }

  .profile-info h2 i {
    font-size: 1.2rem;
    opacity: 0.7;
  }

  .profile-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
  }

  .profile-info p:hover {
    color: var(--accent-color);
  }

  .profile-info p i {
    font-size: 1rem;
    opacity: 0.7;
  }

  .email-info {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 0.25rem !important;
  }

  .verified-badge {
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
  }

  .unverified-badge {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
  }

  /* Settings Grid Styles */
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
  }

  .setting-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .setting-item h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .setting-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
  }

  /* Dobble Settings Styles */
  .main-container {
    padding-top: 100px;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .dobble-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
  }

 

  .dobble-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 2;
  }

  .customization-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .panel-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .customization-section {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .color-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
  }

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

  .custom-color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
  }

  .custom-color-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .sound-options, .animation-options, .bg-animation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .sound-option, .animation-option, .bg-animation-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .sound-option:hover, .animation-option:hover, .bg-animation-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .sound-option.selected, .animation-option.selected, .bg-animation-option.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
    color: white;
  }

  .sound-option i, .animation-option i, .bg-animation-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
  }

  .sound-name {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .filter-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .filter-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
  }

  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  .filter-chip.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
    color: white;
  }

  /* Color Picker Modal */
  .color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .color-picker-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
  }

  .color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .color-picker-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .rainbow-colors {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .rainbow-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .rainbow-color:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .custom-color-input {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
  }

  .profile-menu-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .menu-section {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
  }

  .menu-section:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .menu-section.danger-section {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
  }

  .menu-section.danger-section:hover {
    background: rgba(239, 68, 68, 0.1);
  }

  .section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }

  .section-icon i {
    font-size: 18px;
    color: var(--text-color);
  }

  .menu-section.danger-section .section-icon {
    background: rgba(239, 68, 68, 0.2);
  }

  .menu-section.danger-section .section-icon i {
    color: #ef4444;
  }

  .section-content {
    flex: 1;
  }

  .section-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
  }

  .section-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
  }

  .section-arrow {
    color: var(--text-secondary);
    font-size: 14px;
  }

  /* Edit Screens */
  .edit-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 3000;
    overflow-y: auto;
  }

  .edit-screen-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
  }

  .edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
  }

  .edit-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 32px;
    font-weight: 600;
  }

  .back-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    height: 45px;
    width: 45px;
    border: var(--border);
    border-radius: 100%;
    transition: 0.5s;
    display: inline-block;
    background-color: var(--btn-bg-semitrans);
    cursor: pointer;
  }

  .back-button i {
    background: no-repeat center center/ 50%;
    filter: invert(var(--invert-icons));
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('/media/icons/icon-back.svg');
  }

  .back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }

  .edit-body {
    padding: 0;
  }

  .current-image-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .current-image-preview .current-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .current-image-preview .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .current-image-preview .profile-placeholder {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.6);
  }

  .image-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
  }

  /* Account Management Page */
  .account-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .account-group {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .account-group h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 18px;
  }

  .account-group.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
  }

  .account-group.danger-zone h3 {
    color: #ef4444;
  }

  /* Profile Picture Section */
  .profile-picture-section {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .current-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .profile-placeholder {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.6);
  }

  .profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Account Form */
  .account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
  }

  .form-field label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 18px;
  }

  .form-field input,
  .form-field select {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 100%;
  }

  .form-field input:focus,
  .form-field select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
  }

  .field-help {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
  }

  .field-help .verified {
    color: #10b981;
    font-weight: 500;
  }

  .field-help .unverified {
    color: #f59e0b;
    font-weight: 500;
  }

  /* Password Section */
  .password-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .password-form {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 15px;
  }

  .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
  }

  /* Account Actions */
  .account-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
  }

  /* Danger Zone */
  .danger-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
  }

  .danger-info h4 {
    margin: 0 0 8px 0;
    color: #ef4444;
    font-size: 16px;
  }

  .danger-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
  }

  /* Buttons */
  .btn-primary, .btn-secondary, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-primary {
    background: var(--accent-color);
    color: white;
  }

  .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
  }

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

  .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
  }

  /* Modal Styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
  }

  .modal-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .modal-title h2 {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 20px;
  }

  .modal-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
  }

  .close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .modal-body {
    padding: 20px;
  }

  .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .password-verification {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .password-verification label {
    font-weight: 500;
    color: var(--text-color);
  }

  .password-verification input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 16px;
  }

  .password-verification input:focus {
    outline: none;
    border-color: #ef4444;
    background: rgba(255, 255, 255, 0.1);
  }

  /* Loading States */
  .btn-primary:disabled,
  .btn-secondary:disabled,
  .btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
  }

  .btn-primary:disabled:hover,
  .btn-secondary:disabled:hover,
  .btn-danger:disabled:hover {
    transform: none !important;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-content {
      padding: 10px;
    }

    .profile-picture-container {
      margin-bottom: 2rem;
    }

    .profile-image-container {
      width: 100px;
      height: 100px;
    }

    .profile-menu-sections {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .menu-section {
      padding: 15px;
      min-height: 70px;
    }

    .section-icon {
      width: 35px;
      height: 35px;
      margin-right: 10px;
    }

    .section-icon i {
      font-size: 16px;
    }

    .section-content h4 {
      font-size: 14px;
    }

    .section-content p {
      font-size: 12px;
    }

    .edit-screen-content {
      padding: 20px 10px;
    }

    .edit-header h3 {
      font-size: 24px;
    }

    .edit-header {
      padding: 20px 0;
      margin-bottom: 30px;
    }

    .form-field {
      margin-bottom: 20px;
    }

    .form-field label {
      font-size: 16px;
    }

    .form-field input,
    .form-field select {
      padding: 12px 16px;
      font-size: 16px;
    }

    .image-actions {
      flex-direction: column;
      gap: 8px;
    }

    .form-actions {
      flex-direction: column;
    }

    .danger-item {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }

    .modal-container {
      width: 95%;
      margin: 20px;
    }

    .modal-actions {
      flex-direction: column;
    }
  }

  /* Top Buttons Container */
  .top-buttons {
      position: relative;
      display: flex;
      gap: 1rem;
      align-items: center;
  }

  /* Login Button */
  .login-button {
      position: relative;
  }

  .login-btn {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--text-color);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .login-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .login-btn i {
      font-size: 1.5rem;
      color: var(--text-color) !important;
  }

  /* Enhanced Theme Toggle Button */
  .theme-toggle {
      position: relative;
  }

  .theme-btn {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--text-color);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: hidden;
  }

  .theme-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s ease;
  }

  .theme-btn:hover::before {
      left: 100%;
  }

  .theme-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .theme-btn .moon-icon {
      display: block;
      font-size: 1.2rem;
      color: var(--text-color) !important;
  }

  .theme-btn .sun-icon {
      display: none;
      font-size: 1.2rem;
      color: var(--text-color) !important;
  }

  [data-theme="dark"] .theme-btn .sun-icon {
      display: block;
  }

  [data-theme="dark"] .theme-btn .moon-icon {
      display: none;
      color: var(--text-color) !important;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .sidebar {
      width: 280px;
      right: -280px;
    }
    
    .main-content {
      padding: 10px;
    }
    
    .content-section {
      max-width: 100%;
    }
    
    .mode-selection {
      gap: 15px;
      padding: 15px;
      flex-direction: column;
      align-items: center;
    }
    
    .mode-selection > a {
      width: 100%;
      max-width: 250px;
    }
    
    .mode-button {
      padding: 12px 24px;
      font-size: 14px;
      min-width: 120px;
      width: 100%;
    }
    
    .profile-pic,
    .login-btn {
      width: 50px;
      height: 50px;
    }

    
    
    .stats-grid {
      grid-template-columns: 1fr;
    }
    
    .setting-item {
      flex-direction: column;
      align-items: stretch;
    }
    
    .setting-item label {
      min-width: auto;
    }
    
    .top-buttons {
      gap: 0.5rem;
    }
  }

  @media (max-width: 480px) {
    .mode-selection {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    
    .mode-selection > a {
      width: 100%;
      max-width: 200px;
    }
    
    .mode-button {
      width: 100%;
      padding: 10px 20px;
      font-size: 13px;
      min-width: 100px;
    }
    
    .header {
      padding: 0 10px;
    }
    
    .top-buttons {
      gap: 0.25rem;
    }
    
    .theme-btn,
    .login-btn {
      width: 40px;
      height: 40px;
    }
  }

  /* Footer Styles */
  .page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    pointer-events: none;
  }

  .footer-company {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
    pointer-events: auto;
  }

  .footer-dropdown {
    position: relative;
    pointer-events: auto;
  }

  .footer-dropdown-trigger {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.7;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
  }

  .footer-dropdown-trigger:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
  }

  .footer-dropdown-triangle {
    font-size: 8px;
    transition: transform 0.3s ease;
  }

  .footer-dropdown.open .footer-dropdown-triangle {
    transform: rotate(180deg);
  }

  .footer-dropdown-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .footer-dropdown.open .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .footer-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
  }

  .footer-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  /* Light theme adjustments for footer dropdown */
  [data-theme="light"] .footer-dropdown-menu {
    background: rgba(248, 250, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  [data-theme="light"] .footer-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  @media (max-width: 768px) {
    .page-footer {
      padding: 0 15px;
    }
    
    .footer-company,
    .footer-dropdown-trigger {
      font-size: 11px;
    }
  }



  .sidebar-toggle-btn {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 50%;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--text-color);
      font-size: 22px;
      margin-right: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .sidebar-toggle-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }
    @media (max-width: 480px) {
      .sidebar-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
    }