:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --text-primary: #262626;
    --text-secondary: #8e8e8e;
    --accent: #0095f6;
    --border: #dbdbdb;
    --like: #ed4956;
    --link: #00376b;
    --holiday-gold: #ffd700;
    --holiday-red: #ff4d4d;
    --holiday-green: #4CAF50;
   }
   
   .dark-theme {
    --bg-primary: #000000;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #8e8e8e;
    --border: #262626;
    --link: #e0f1ff;
   }
   
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
   }
   
   body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
   }
   
   /* Welcome Screen */
   .welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
   }
   
   .welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
   }
   
   .welcome-title {
    font-size: 28px;
    margin-bottom: 24px;
    background: linear-gradient(45deg, var(--holiday-gold), var(--holiday-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: sparkle 2s infinite;
   }
   
   .name-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s;
   }
   
   .name-input:focus {
    outline: none;
    border-color: var(--accent);
   }
   
   .welcome-button {
    background: linear-gradient(45deg, var(--holiday-red), var(--holiday-gold));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
   }
   
   .welcome-button:hover {
    transform: translateY(-2px);
   }
   
   .welcome-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
   }
   
   /* App Layout */
   .app {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    position: relative;
   }
   
   .header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 100;
    backdrop-filter: blur(10px);
   }
   
   .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
   }
   
   .user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
   }
   
   .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--holiday-red), var(--holiday-gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
   }
   
   .header-actions {
    display: flex;
    gap: 16px;
   }
   
   .header-actions button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s, opacity 0.2s;
   }
   
   .header-actions button:hover {
    transform: scale(1.1);
    opacity: 0.8;
   }
   
   /* Posts */
   .posts {
    padding-bottom: 80px;
   }
   
   .post {
    border-bottom: 1px solid var(--border);
    padding: 16px;
    animation: fadeIn 0.3s ease;
    transition: transform 0.3s;
    position: relative;
   }
   
   .post:hover {
    transform: translateY(-2px);
   }
   
   .post::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--holiday-gold), transparent);
    animation: shimmer 3s infinite;
   }
   
   .post-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
   }
   
   .post-meta {
    flex: 1;
   }
   
   .username {
    font-weight: 600;
   }
   
   .timestamp {
    font-size: 12px;
    color: var(--text-secondary);
   }
   
   .post-content {
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
   }
   
   .audio-player {
    margin: 12px 0;
    width: 100%;
   }
   
   .audio-player audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
   }
   
   .post-actions {
    display: flex;
    gap: 20px;
    margin-top: 12px;
   }
   
   .action-button {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
   }
   
   .action-button:hover {
    background: var(--bg-secondary);
   }
   
   .action-button.liked {
    color: var(--holiday-red);
   }
   
   .action-button.liked i {
    animation: heartBeat 0.3s ease-in-out;
   }
   
   /* New Post Button */
   .new-post-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--holiday-red), var(--holiday-gold));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s;
    z-index: 100;
   }
   
   .new-post-button:hover {
    transform: scale(1.1) rotate(180deg);
   }
   
   /* Modal */
   .modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
   }
   
   .modal-content {
    background: var(--bg-primary);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
   }
   
   .modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
   }
   
   .close-button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.2s;
   }
   
   .close-button:hover {
    transform: rotate(90deg);
   }
   
   /* Forms */
   .post-form,
   .comment-form {
    padding: 16px;
   }
   
   textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    resize: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
   }
   
   textarea:focus {
    outline: none;
    border-color: var(--accent);
   }
   
   .character-counter {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
    transition: color 0.2s;
   }
   
   .character-counter.limit-near {
    color: var(--holiday-gold);
   }
   
   .character-counter.limit-reached {
    color: var(--holiday-red);
   }
   
   .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
   }
   
   .record-button {
    color: var(--text-primary);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
   }
   
   .record-button.recording {
    color: var(--holiday-red);
    animation: pulse 1s infinite;
   }
   
   .recording-timer {
    font-size: 12px;
    color: var(--text-secondary);
   }
   
   .submit-button {
    background: linear-gradient(45deg, var(--holiday-red), var(--holiday-gold));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
   }
   
   .submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
   }
   
   .submit-button:not(:disabled):hover {
    transform: translateY(-2px);
   }
   
   /* Animations */
   @keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
   }
   
   @keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
   }
   
   @keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
   }
   
   @keyframes shimmer {
    100% { left: 100%; }
   }
   
   @keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
   }
   
   @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
   }
   
   @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
   }
   
   /* Holiday Effects */
   .snowflake {
    position: fixed;
    color: var(--holiday-gold);
    font-size: 20px;
    user-select: none;
    z-index: 1000;
    pointer-events: none;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255,215,0,0.3);
   }
   
   @keyframes snowfall {
    0% { 
      transform: translateY(-10px) rotate(0deg);
      opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
      transform: translateY(calc(100vh + 10px)) rotate(360deg);
      opacity: 0;
    }
   }
   
   .firework {
    position: fixed;
    bottom: 0;
    width: 4px;
    height: 4px;
    pointer-events: none;
   }
   
   .firework::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--holiday-gold);
    box-shadow: 0 0 10px var(--holiday-gold);
   }
   
   /* Comments */
   .comments-section {
    padding: 16px;
    border-top: 1px solid var(--border);
   }
   
   .comments-header {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, var(--holiday-red), var(--holiday-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
   }
   
   .comment {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
    transition: transform 0.2s;
   }
   
   .comment:hover {
    transform: translateX(5px);
   }
   
   /* Notifications */
   .notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
   }
   
   @keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
  }

  .firework {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
  }
  
  /* Firework Particles */
  .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: explode 1s ease-out forwards;
  }
  
  /* Firework Animation */
  @keyframes explode {
    0% {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateY(var(--fall-distance)) scale(0);
      opacity: 0;
    }
  }
  
  
  @media (max-width: 600px) {
    .app {
      width: 100%;
    }
    
    .modal {
      padding: 0;
    }
    
    .modal-content {
      height: 100%;
      max-height: none;
      border-radius: 0;
    }
  }