* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background-color: #ffffff;
        color: #333;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-tap-highlight-color: transparent;
      }

      /* Cards and Sections */
      .card {
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 24px;
        margin: 40px;
        margin-top: 0;
        margin-bottom: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
      }

      .card:first-child {
        margin-top: 40px;
      }

      .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      }

      .card h3 {
        font-size: 18px;
        color: #1a1a1a;
        margin-bottom: 20px;
        font-weight: 600;
      }

      /* Forex Converter */
      .converter-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
      }

      .converter-input-group {
        display: flex;
        flex-direction: column;
      }

      .converter-input-group label {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .currency-select-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        transition: all 0.3s ease;
        background-color: #ffffff;
        cursor: pointer;
        position: relative;
      }

      .currency-select-wrapper:hover {
        border-color: #1e3799;
        background-color: #f8f9fa;
      }

      .currency-select-wrapper:focus-within {
        border-color: #1e3799;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
      }

      /* Currency Dropdown Menu */
      .currency-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        margin-top: 8px;
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
      }

      .currency-dropdown.active {
        display: block;
      }

      .currency-dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
      }

      .currency-dropdown-item:last-child {
        border-bottom: none;
      }

      .currency-dropdown-item:hover {
        background-color: #f8f9fa;
      }

      .currency-dropdown-item.selected {
        background-color: #e8f0fe;
        color: #1e3799;
      }

      .currency-dropdown-item-flag {
        font-size: 24px;
        min-width: 28px;
        text-align: center;
      }

      .currency-dropdown-item-info {
        flex: 1;
      }

      .currency-dropdown-item-code {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 14px;
      }

      .currency-dropdown-item-name {
        font-size: 12px;
        color: #999;
      }

      .currency-info {
        display: flex;
        flex-direction: column;
        flex: 1;
      }

      .currency-info .currency-code {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 16px;
      }

      .currency-info .currency-name {
        font-size: 12px;
        color: #999;
      }

      .converter-input-group select {
        padding: 0;
        border: none;
        background: none;
        font-size: 16px;
        cursor: pointer;
        appearance: none;
        min-height: 44px;
        -webkit-appearance: none;
        -moz-appearance: none;
      }

      .converter-input-group input {
        padding: 12px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 18px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-height: 44px;
      }

      .converter-input-group input:focus {
        outline: none;
        border-color: #1e3799;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
      }

      .swap-button {
        position: relative;
        margin: 0;
        margin-top: 28px;
        align-self: flex-start;
        width: 48px;
        height: 48px;
        padding: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 20px;
        font-weight: 600;
        color: #666;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        min-height: 48px;
        -webkit-user-select: none;
        user-select: none;
      }

      .swap-button:hover {
        background: linear-gradient(135deg, #1e3799 0%, #1557b0 100%);
        color: white;
        border-color: #1e3799;
        box-shadow: 0 8px 16px rgba(26, 115, 232, 0.3);
        transform: translateY(-2px);
      }

      .swap-button:active {
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
      }

      .swap-button::before {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 10px;
        background: linear-gradient(135deg, #1e3799, #1557b0);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
      }

      .converter-result {
        margin-top: 20px;
        padding: 20px;
        background: linear-gradient(135deg, #1e3799 0%, #1557b0 100%);
        border-radius: 8px;
        color: white;
        text-align: center;
      }

      .converter-result p {
        font-size: 13px;
        opacity: 0.9;
        margin-bottom: 8px;
      }

      .converter-result .result-value {
        font-size: 36px;
        font-weight: 600;
        margin-bottom: 8px;
      }

      .converter-result .result-unit {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 12px;
      }

      .converter-rate {
        font-size: 12px;
        opacity: 0.85;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
      }

      /* Price Grid */
      .price-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
      }

      .price-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f2 100%);
        padding: 16px;
        border-radius: 6px;
        text-align: center;
      }

      .price-card p {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
      }

      .price-card .price-value {
        font-size: 24px;
        color: #1e3799;
        font-weight: 600;
      }

      /* Chart Styles */
      .chart-container {
        margin-bottom: 24px;
      }

      .chart-controls {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
      }

      .chart-btn {
        padding: 10px 18px;
        border: 1px solid #e9ecef;
        background: #ffffff;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        color: #666;
        transition: all 0.3s ease;
        font-weight: 500;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
      }

      .chart-btn:hover {
        border-color: #1e3799;
        color: #1e3799;
      }

      .chart-btn.active {
        background: #1e3799;
        color: white;
        border-color: #1e3799;
      }

      .chart-canvas-wrapper {
        position: relative;
        height: 500px;
        margin-bottom: 20px;
      }

      canvas {
        max-height: 500px;
      }

      /* Iframe Styles */
      .iframe-container {
        width: 100%;
        height: 700px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin-bottom: 24px;
      }

      .iframe-container iframe {
        width: 100%;
        height: 100%;
        border: none;
      }

      /* Responsive */
      @media (max-width: 768px) {
        .card {
          margin: 15px;
          padding: 16px;
        }

        .converter-grid {
          grid-template-columns: 1fr;
          gap: 12px;
        }

        .chart-controls {
          gap: 8px;
          flex-wrap: wrap;
        }

        .chart-btn {
          padding: 6px 12px;
          font-size: 13px;
        }

        .iframe-container {
          height: 400px;
        }

        .price-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 12px;
        }

        .price-card {
          padding: 12px;
        }

        .swap-button {
          width: 44px;
          height: 44px;
          font-size: 18px;
        }
      }

      @media (max-width: 600px) {
        body {
          font-size: 14px;
        }

        .card {
          margin: 10px;
          padding: 12px;
          border-radius: 6px;
        }

        .card h3 {
          font-size: 16px;
          margin-bottom: 12px;
        }

        .card p {
          font-size: 13px;
        }

        .converter-input-group label {
          font-size: 11px;
          margin-bottom: 6px;
        }

        .converter-input-group input,
        .currency-select-wrapper {
          padding: 10px;
          font-size: 14px;
        }

        .currency-info .currency-code {
          font-size: 14px;
        }

        .currency-info .currency-name {
          font-size: 11px;
        }

        .swap-button {
          width: 40px;
          height: 40px;
          font-size: 16px;
          margin-top: 20px;
        }

        .converter-result {
          padding: 15px;
          border-radius: 6px;
        }

        .converter-result .result-value {
          font-size: 28px;
          margin-bottom: 6px;
        }

        .converter-result .result-unit {
          font-size: 12px;
          margin-bottom: 8px;
        }

        .chart-controls {
          gap: 6px;
          margin-bottom: 12px;
        }

        .chart-btn {
          padding: 5px 10px;
          font-size: 12px;
          border-radius: 4px;
        }

        .chart-canvas-wrapper {
          height: 300px;
          margin-bottom: 12px;
        }

        .iframe-container {
          height: 300px;
          margin-bottom: 12px;
        }

        .price-grid {
          grid-template-columns: 1fr;
          gap: 10px;
        }

        .price-card {
          padding: 10px;
          border-radius: 4px;
        }

        .price-card p {
          font-size: 11px;
          margin-bottom: 6px;
        }

        .price-card .price-value {
          font-size: 18px;
        }
      }

      @media (max-width: 400px) {
        .card {
          margin: 8px;
          padding: 10px;
        }

        .card h3 {
          font-size: 14px;
        }

        .converter-input-group input,
        .currency-select-wrapper {
          padding: 8px;
          font-size: 13px;
        }

        .converter-result {
          padding: 12px;
        }

        .converter-result .result-value {
          font-size: 24px;
        }

        .chart-canvas-wrapper {
          height: 250px;
        }

        .iframe-container {
          height: 250px;
        }
      }