:root {
    --teal-green: #20c997;
    --deep-teal: #138d75;
    --navy-blue: #001f3f;
    --dark-navy: #001737;
    --soft-gray: #f4f4f4;
    --white: #ffffff;
    --dark-bg: #1f1f1f;
    --dark-card: #2c2c2c;
    --light-text: #f0f0f0;
    --muted-gray: #aaa;
    --accent-color: var(--teal-green);
  }
  
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: var(--soft-gray);
    color: #333;
    transition: background 0.3s, color 0.3s;
  }
  
  body.dark {
    background: var(--dark-bg);
    color: var(--light-text);
  }
  
  .container {
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    text-align: center;
  }
  
  .title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--teal-green), var(--navy-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .language-selector {
    margin: 1rem 0;
  }
  
  .share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: var(--deep-teal);
    transition: transform 0.2s ease, background-color 0.3s ease;
  }
  
  .btn svg {
    width: 20px;
    height: 20px;
    fill: white;
  }
  
  .btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
  }
  
  .copy {
    font-size: 20px;
    background-color: var(--navy-blue);
    color: white;
  }
  
  .counter-display {
    margin-top: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  
  body.dark .counter-display {
    background: var(--dark-card);
  }
  
  .counter-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .counter-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .counter-list li {
    margin: 0.25rem 0;
  }
  
  .toggle-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }
  
  .dark-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--muted-gray);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
  }
  
  body.dark .dark-mode-label {
    background-color: var(--dark-card);
    border-color: #444;
  }
  
  .mode-icon {
    font-size: 1.2rem;
  }
  
  .mode-text {
    font-size: 0.95rem;
  }
  
  .theme-selector {
    margin-top: 1.5rem;
  }
  
  .theme-selector input[type="color"] {
    padding: 0.25rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
  }
  
  .custom-links {
    margin-top: 2rem;
  }
  
  .custom-links label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  .custom-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .custom-links input[type="url"] {
    padding: 0.5rem;
    width: 60%;
    max-width: 300px;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
  }
  
  .custom-links button {
    padding: 0.5rem 1rem;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
  }
  
  .custom-links ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
  }
  
  .custom-links li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .custom-links li a {
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-word;
  }
  
  /* 🆕 Delete custom link button */
  .custom-links .delete-link {
    margin-left: 0.5rem;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .custom-links .delete-link:hover {
    color: #a71d2a;
  }
  
  .embed-export {
    margin-top: 2rem;
  }
  
  .embed-export textarea {
    width: 100%;
    height: 80px;
    padding: 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid #ccc;
    resize: none;
    font-family: monospace;
    margin-bottom: 0.5rem;
  }
  
  .embed-export button {
    padding: 0.5rem 1rem;
    background: var(--deep-teal);
    color: white;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
  }
  