* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfdfd;
    color: #222;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0077b6;
    color: white;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}
.logo{
    max-width:10%;
}

main {
    padding: 25px 20px;
    min-height: 75vh;
}

footer {
    background-color: #e0e0e0;
    color: #444;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    header, nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-text h1 {
        font-size: 18px;
    }
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    background: #f0f8ff;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 36px;
    color: #023e8a;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.cta-btn {
    background-color: #0077b6;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

.cta-btn:hover {
    background-color: #005f99;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.features {
    padding: 40px 20px;
    background-color: #ffffff;
    text-align: center;
}

.features h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #023e8a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
    gap: 25px;
    padding: 20px;
}

.feature-card {
    background-color: #e7f1ff;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feature-card h3 {
    color: #0077b6;
    margin-bottom: 10px;
}

.cta {
    background-color: #0077b6;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta-btn.big {
    font-size: 18px;
    padding: 15px 30px;
    background-color: #fff;
    color: #0077b6;
    border: 2px solid white;
}

.cta-btn.big:hover {
    background-color: #e0f2ff;
    color: #005f99;
}
/*subscribe html*/
.tv-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #444;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tv-card {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.tv-card:hover {
    transform: translateY(-5px);
}

.tv-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.tv-specs {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
}

.tv-total {
    margin: 10px 0;
    font-weight: bold;
    color: #2c3e50;
}

.tv-button {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.tv-button:hover {
    background-color: #0073e6;
}

.tv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.tv-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.tv-form-card h2 {
    margin-bottom: 20px;
}

.tv-form-card input,
.tv-form-card label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tv-form-card input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tv-form-card button {
    width: 100%;
    margin-top: 10px;
}

.tv-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
}

/*accounts*/
.account-container {
  max-width: 1100px;
  margin: 50px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.profile-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.profile-info p {
  margin: 4px 0;
  color: #666;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.device-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.device-card:hover {
  transform: translateY(-4px);
}

.device-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.device-status {
  font-weight: bold;
  margin: 0.3rem 0;
}

.device-status.locked {
  color: red;
}

.device-status.active {
  color: green;
}

.button-pay {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.button-pay:hover {
  background-color: #0056b3;
}

.device-active {
  color: green;
  font-weight: bold;
}

.no-sub {
  color: orange;
  font-weight: bold;
}

.logout-button {
  margin-top: 30px;
  display: inline-block;
  background-color: #0077b6;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #005f87;
}

#paymentForm {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    display:none;
    position: relative;
}

#paymentForm label {
    display: block;
    margin-top: 10px;
}

#paymentForm input, #paymentForm select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#paymentForm button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    background: green;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.overlay {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    display: none; /* Hide by default */
}

.overlay form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overlay h2 {
    margin-bottom: 10px;
    text-align: center;
}

.overlay select,
.overlay input,
.overlay button {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.overlay button {
    cursor: pointer;
}

.overlay button[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
}

.overlay button[type="button"] {
    background-color: #dc3545;
    color: white;
    border: none;
}
#status-message {
  margin-top: 20px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  display: none;
  text-align: center;
  transition: all 0.3s ease;
}

.status-pending {
  background-color: #fff3cd;
  border: 2px solid #ffeeba;
  color: #856404;
}

.status-verifying {
  background-color: #d1ecf1;
  border: 2px solid #bee5eb;
  color: #0c5460;
}

.status-success {
  background-color: #d4edda;
  border: 2px solid #c3e6cb;
  color: #155724;
}

.status-error {
  background-color: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
}

/*login & signups*/
.auth-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.auth-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #224488;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.btn-primary {
  width: 100%;
  padding: 10px;
  background: #224488;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.btn-primary:hover {
  background: #1a3666;
}
