/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Body styling for full-page centering */
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
  }
  
  /* Navigation */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 1em;
    max-width: 800px;
    width: 100%;
  }
  
  .logo {
    align-items: center;
    color: white;
    text-decoration: none;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.65rem;
    padding: 5px;
  }

  .logo h4 {
    margin: 0;
  }
  
  .logo img {
    width: 150px;
    height: auto;
  }

  .site-logo-mark {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 7px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
    display: grid;
    height: 34px;
    overflow: hidden;
    place-items: center;
    width: 60px;
  }

  .logo .site-logo-mark img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .brand-only-nav {
    justify-content: flex-start;
  }
  
  .nav-links {
    list-style: none;
  }
  
  .nav-links li {
    display: inline-block;
    margin-left: 2em;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
  }
  
  /* Main container for dashboard */
  main {
    flex: 1;
    padding: 1em 2em;
    max-width: 800px;
    width: 100%;
  }
  
  .main-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
  }
  
  /* Heading styling */
  h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  /* Paragraph styling */
  p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  /* User email and status styling */
  #user-email, #user-status {
    color: #333;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  /* Subscribe button styling */
  #subscribe-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
  }
  
  #subscribe-btn:hover {
    background-color: #218838;
  }
  
  /* Access Spyconverter Pro button styling */
  #access-spyconverterpro-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
  }
  
  #access-spyconverterpro-btn:hover {
    background-color: #0056b3;
  }
  
  /* Premium Feature button styling (New) */
  #premium-feature-btn {
    background-color: #ff9800; /* Orange for premium feel */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
  }
  
  #premium-feature-btn:hover {
    background-color: #e68900;
  }

  #dow-russell-feature-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    margin-top: 10px;
  }

  #dow-russell-feature-btn:hover {
    background-color: #e68900;
  }

  .pro-action-group {
    width: 100%;
    margin: 24px auto 0;
  }

  .pro-feature-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }

  .pro-feature-buttons #premium-feature-btn,
  .pro-feature-buttons #dow-russell-feature-btn {
    align-items: center;
    justify-content: center;
    min-height: 76px;
    margin: 0;
    padding: 14px 18px;
    width: 100%;
    white-space: normal;
  }

  .pro-account-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 0;
  }

  .pro-account-actions #logout-btn {
    margin-right: 0;
    margin-top: 0;
  }

  .pro-account-actions .settings-square-link {
    border-color: #b9c2ce;
    color: #566273;
    height: 43px;
    gap: 7px;
    padding: 0 16px !important;
    width: auto;
  }

  .pro-account-actions .settings-square-link:hover {
    background: #eef1f5;
    border-color: #7f8b99;
  }
  
  /* Delete button styling */
  #delete-account-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #delete-account-btn:hover {
    background-color: #c82333;
  }
  
  /* Logout button styling */
  #logout-btn {
    background-color: #6c757d; /* Gray for logout */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #logout-btn:hover {
    background-color: #5a6268;
  }
  
  /* Feedback message styling */
  #delete-feedback, #feature-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
  }
  
  /* Footer */
  footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em;
    width: 100%;
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .main-container {
        padding: 20px;
        max-width: 100%;
    }
    h1 {
        font-size: 24px;
    }
    p {
        font-size: 14px;
    }
    #user-email, #user-status {
        font-size: 16px;
    }
    #subscribe-btn, #delete-account-btn, #access-spyconverterpro-btn, #premium-feature-btn, #dow-russell-feature-btn, #logout-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    #delete-feedback, #feature-feedback {
        font-size: 12px;
    }
    .pro-feature-buttons {
        grid-template-columns: 1fr;
    }
    .pro-feature-buttons #premium-feature-btn,
    .pro-feature-buttons #dow-russell-feature-btn {
        min-height: 62px;
    }
  }

  @media (max-width: 700px) {
    nav {
      align-items: stretch;
      flex-direction: column;
      gap: 0.75rem;
    }

    nav .logo {
      align-self: flex-start;
    }

    .nav-links {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 0.9rem;
      justify-content: space-between;
      margin: 0;
      padding: 0;
      width: 100%;
    }

    .nav-links li {
      margin-left: 0;
    }
  }
  
  /* Retained styles from your original */
  #conversion-ratio {
    color: red;
    font-size: 0.8em;
  }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
    margin-top: 1em;
  }
  
  .blog-post {
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .blog-post h2 {
    margin: 0 0 0.5em 0;
  }
  
  .blog-post p {
    margin: 0 0 1em 0;
  }
  
  .header-container {
    max-width: 800px;
    margin: auto;
    width: 100%;
  }
  
  .middle-section {
    margin-top: 2em;
    display: flex;
    justify-content: center;
  }
  
  .latest-news-box {
    border: 2px dotted green;
    padding: 1em;
    text-align: center;
  }
  
  .latest-news-box h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }
  
  .test-section {
    background-color: #f1f8e9;
    padding: 2em;
    padding-top: 0.5em;
    padding-bottom: 1em;
    margin-bottom: 1em;
    margin-top: 1em;
    line-height: 1em;
  }
  
  .banner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    height: 250px;
  }
  
  .alignleft {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 4em;
  }
  
  .image-container, .smaller-image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .breakout-image {
    width: 30%;
    margin: 1%;
  }
  
  .smaller-breakout-image {
    width: 15%;
    margin: 0.5%;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #de87ef;
    min-width: 160px;
    z-index: 1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .conversion-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
  }
  
  .conversion-section2 {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #c4c4c4;
  }
  
  .green-italic {
    color: green;
    font-style: italic;
  }
  
  /* Authentication Section Styles */
  .auth-section {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .auth-section label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
  }
  
  .auth-section input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .auth-section button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .auth-section button:hover {
    background-color: #555;
  }
  
  #feedback {
    margin-top: 10px;
    color: #333;
    font-style: italic;
  }

/* Native Blog disclosure works with mouse, touch, and keyboard. */
nav .blog-menu { position: relative; }
nav .blog-menu > summary {
  align-items: center;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 0.3em;
  list-style: none;
}
nav .blog-menu > summary::-webkit-details-marker { display: none; }
nav .blog-menu > summary::after { content: none; }
nav .blog-menu[open] > summary::after { transform: rotate(180deg); }
nav .blog-menu-links {
  background: #de87ef;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 170px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
}
nav .blog-menu-links a {
  color: #000;
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
}
nav .blog-menu-links a:hover { background: rgba(255, 255, 255, 0.25); }
nav .blog-menu :is(summary, a):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
