/* ===== RESET & BASE STYLES ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Inter", sans-serif;
      background: #282828;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      color: #eaeaea;
      overflow-x: hidden;
    }

    /* ===== TOP NAVIGATION BAR ===== */
    .top-bar {
      background: #656160;
      padding: 18px 40px;
      text-align: center;
      border: 3px solid #858482;
      border-radius: 15px;
      margin: 25px 40px;
      transition: all 0.3s ease;
    }

    .top-bar:hover {
      background: #707070;
    }

    .top-bar-links {
      font-size: 22px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .top-bar-links a {
      color: #eaeaea;
      text-decoration: none;
      margin: 0 8px;
      transition: opacity 0.2s ease;
    }

    .top-bar-links a:hover {
      color: #fff;
      text-decoration: underline;
    }

    /* ===== HERO SECTION ===== */
    .top-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 40px 20px 80px;
      text-align: center;
    }

    h1 {
      font-size: 6.5rem;
      font-weight: 900;
      color: white;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: -3px;
      margin-bottom: 15px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .asterisk {
      font-size: 4rem;
      vertical-align: super;
      margin-left: 8px;
      color: #858482;
    }

    .disclaimer {
      color: #858482;
      font-size: 15px;
      margin-top: 15px;
      font-weight: 400;
    }

    /* ===== BOTTOM SECTION ===== */
    .bottom-section {
      position: relative;
      background: #656160;
      padding: 80px 20px 150px;
    }

    /* ===== INPUT CONTAINER ===== */
    .input-container {
      max-width: 800px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .input-wrapper {
      display: flex;
      align-items: stretch;
      background: #282828;
      border: 4px solid #858482;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
      transition: transform 0.2s ease;
    }

    .input-wrapper:focus-within {
      transform: translateY(-2px);
      box-shadow: 0 18px 60px rgba(133, 132, 130, 0.3);
    }

    input[type="text"].url-input {
      flex: 1;
      padding: 25px 35px;
      border: none;
      font-size: 20px;
      background: transparent;
      color: #eaeaea;
      outline: none;
      font-weight: 500;
    }

    input[type="text"].url-input::placeholder {
      color: #858482;
      font-weight: 500;
    }

    button[type="submit"] {
      padding: 25px 50px;
      background: #858482;
      color: #282828;
      border: none;
      border-left: 4px solid #656160;
      font-size: 20px;
      font-weight: 900;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    button[type="submit"]:hover:not(:disabled) {
      background: #9a9997;
      box-shadow: 0 7px 22px rgba(133, 132, 130, 0.4);
      transform: translateY(-3px);
    }

    button[type="submit"]:active:not(:disabled) {
      transform: scale(0.98);
    }

    button[type="submit"]:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* ===== CUSTOM ALIAS INPUT ===== */
    .custom-alias-wrapper {
      margin-top: 20px;
      background: #282828;
      border-radius: 15px;
      padding: 20px 35px;
      border: 4px solid #858482;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    #customAlias {
      width: 100%;
      padding: 15px 0;
      border: none;
      border-bottom: 2px solid #656160;
      font-size: 18px;
      background: transparent;
      color: #eaeaea;
      outline: none;
      font-weight: 500;
      transition: border-color 0.3s ease;
    }

    #customAlias:focus {
      border-bottom-color: #858482;
    }

    #customAlias::placeholder {
      color: #858482;
    }

    .hint {
      display: block;
      margin-top: 8px;
      font-size: 13px;
      color: #858482;
      opacity: 0.7;
    }

    /* ===== RESULT BOX ===== */
    .result {
      margin-top: 50px;
      padding: 30px 40px;
      background: #282828;
      border-radius: 15px;
      border: 4px solid #858482;
      display: none;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    }

    .result.show {
      display: block;
      animation: slideIn 0.4s ease;
    }

    .result.error {
      background: #2a1111;
      border-color: #ff4444;
    }

    .result h3 {
      color: #858482;
      font-size: 18px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 20px;
    }

    .result.error h3 {
      color: white;
    }

    .error-message {
      color: white;
      font-weight: 700;
      font-size: 18px;
      line-height: 1.5;
    }

    /* ===== SHORT URL DISPLAY ===== */
    .short-url {
      display: flex;
      align-items: center;
      gap: 20px;
      background: #656160;
      padding: 22px 30px;
      border-radius: 12px;
      margin-bottom: 15px;
    }

    .short-url a {
      color: #eaeaea;
      text-decoration: none;
      font-weight: 700;
      font-size: 18px;
      word-break: break-all;
      flex: 1;
      transition: color 0.2s ease;
    }

    .short-url a:hover {
      color: #fff;
      text-decoration: underline;
    }

    /* ===== COPY BUTTON ===== */
    .copy-btn {
      background: #858482;
      color: #282828;
      padding: 14px 30px;
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 800;
      transition: all 0.2s;
      border: none;
      white-space: nowrap;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .copy-btn:hover {
      background: #9a9997;
      transform: scale(1.05);
    }

    .copy-btn:active {
      transform: scale(0.98);
    }

    .copy-btn.copied {
      background: #10b981;
    }

    /* ===== PROVIDER BADGE ===== */
    .provider-badge {
      background: #656160;
      color: #eaeaea;
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }

    /* ===== LOADING SPINNER ===== */
    .loading-spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid #656160;
      border-top-color: #858482;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* ===== ANIMATIONS ===== */
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 768px) {
      .top-bar {
        padding: 15px 20px;
        margin: 20px;
      }

      .top-bar-links {
        font-size: 16px;
      }

      .top-bar-links a {
        display: inline-block;
        margin: 5px;
      }

      h1 {
        font-size: 3.5rem;
        letter-spacing: -2px;
      }

      .asterisk {
        font-size: 2.5rem;
      }

      .disclaimer {
        font-size: 13px;
      }

      .bottom-section {
        padding: 80px 20px 120px;
      }

      .input-wrapper {
        flex-direction: row;
      }

      input[type="text"].url-input {
        padding: 20px 25px;
        font-size: 16px;
      }

      button[type="submit"] {
        padding: 20px 30px;
        font-size: 16px;
      }

      .custom-alias-wrapper {
        padding: 15px 25px;
      }

      #customAlias {
        font-size: 16px;
      }

      .short-url {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
      }

      .copy-btn {
        width: 100%;
      }
    }

    @media (max-width: 480px) {
      h1 {
        font-size: 2.5rem;
      }

      .asterisk {
        font-size: 1.8rem;
      }

      .input-wrapper {
        flex-direction: column;
      }

      button[type="submit"] {
        border-left: none;
        border-top: 4px solid #656160;
      }

      .result {
        padding: 20px 25px;
      }

      .short-url {
        padding: 18px 20px;
      }
    }

    /* ===== FOOTER ===== */
    .footer,
    .site-footer {
      background: #656160;
      color: #858482;
      padding: 18px 24px;
      border-top: 1px solid #858482;
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 14px;
    }

    .footer a,
    .site-footer a {
      color: #eaeaea;
      text-decoration: none;
      font-weight: 700;
      transition: color 0.15s, opacity 0.15s;
      margin: 0 6px;
    }

    .footer a:hover,
    .site-footer a:hover {
      color: #fff;
      opacity: 0.9;
      text-decoration: underline;
    }

    .footer .disclaimer,
    .site-footer .footer-note,
    .footer p.disclaimer {
      margin: 0;
      color: #858482;
      font-size: 13px;
    }

    .footer-container,
    .footer .footer-container,
    .site-footer .footer-container {
      max-width: 1200px;
      width: 100%;
      display: flex;
      gap: 20px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }

    @media (max-width: 600px) {
      .footer,
      .site-footer {
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
      }

      .footer a,
      .site-footer a {
        margin: 6px 4px;
      }

      .footer .disclaimer,
      .site-footer .footer-note,
      .footer p.disclaimer {
        order: 2;
        width: 100%;
      }
    }