 :root {
      --bg: #000000;
      --card: #242d44;
      --border: #2d3a4f;
      --accent: #3b82f6;
      --accent-hover: #2563eb;
      --text: #e8eef7;
      --muted: #94a3b8;
      --success: #22c55e;
      --radius: 10px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      background: radial-gradient(ellipse at top, #1e293b 0%, var(--bg) 60%);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .app {
      width: 100%;
      max-width: 480px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 32px 28px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .header {
      text-align: center;
      margin-bottom: 28px;
    }

    .header .icon {
      font-size: 42px;
      margin-bottom: 8px;
    }

    .header h1 {
      font-size: 1.55rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .header p {
      color: var(--muted);
      font-size: 0.9rem;
      margin-top: 6px;
    }

    .field {
      margin-bottom: 20px;
      position: relative;
    }

    label {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    input[type="text"] {
      width: 100%;
      padding: 14px 16px;
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--text);
      font-size: 1rem;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    input[type="text"]:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px #3b82f640;
    }

    input[type="text"]::placeholder {
      color: #64748b;
    }

    .suggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: 12px;
      margin-top: 6px;
      max-height: 240px;
      overflow-y: auto;
      z-index: 20;
      display: none;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    .suggestions.show {
      display: block;
    }

    .suggestion-item {
      padding: 12px 16px;
      cursor: pointer;
      font-size: 0.95rem;
      border-bottom: 1px solid #1e293b;
      transition: background 0.15s;
    }

    .suggestion-item:last-child {
      border-bottom: none;
    }

    .suggestion-item:hover,
    .suggestion-item.active {
      background: #1e3a5f;
    }

    .suggestion-item .sub {
      font-size: 0.78rem;
      color: var(--muted);
      margin-top: 2px;
    }

    button.convert {
      width: 100%;
      padding: 16px;
      background: var(--accent);
      color: white;
      border: none;
      border-radius: var(--radius);
      font-size: 1.05rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s, opacity 0.2s;
      margin-top: 8px;
    }

    button.convert:hover:not(:disabled) {
      background: var(--accent-hover);
    }

    button.convert:active:not(:disabled) {
      transform: scale(0.98);
    }

    button.convert:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }

    .result {
      margin-top: 28px;
      padding: 22px;
      background: #0f172a;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      display: none;
      animation: fadeIn 0.35s ease;
    }

    .result.show {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .result h2 {
      font-size: 0.9rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 16px;
    }

    .stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .stat {
      text-align: center;
      padding: 14px 10px;
      background: #1a2332;
      border-radius: 12px;
    }

    .stat .value {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--success);
    }

    .stat .label {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 4px;
    }

    .route {
      margin-top: 16px;
      font-size: 0.88rem;
      color: var(--muted);
      text-align: center;
      line-height: 1.5;
    }

    .duration {
      margin-top: 8px;
      font-size: 0.85rem;
      color: #64748b;
      text-align: center;
    }

    .error {
      color: #f87171;
      font-size: 0.9rem;
      text-align: center;
      margin-top: 12px;
      display: none;
    }

    .hint {
      font-size: 0.8rem;
      color: #64748b;
      margin-top: 6px;
    }

    .footer {
      margin-top: 24px;
      text-align: center;
      font-size: 0.75rem;
      color: #64748b;
      line-height: 1.4;
    }