* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #2a2d33;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 50px;
    background: linear-gradient(to bottom, rgba(42, 45, 51, 0.95), rgba(42, 45, 51, 0));
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(42, 45, 51, 0.98);
    padding: 20px 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -1px;
    color: #e8d5c4;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e8d5c4;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #3a3d43 0%, #2a2d33 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: rgba(232, 213, 196, 0.9);
    color: #2a2d33;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #e8d5c4;
    color: #e8d5c4;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background-color: #e8d5c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
    background-color: rgba(232, 213, 196, 0.1);
    color: #e8d5c4;
}

/* Plant Images Background */
.plant-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(42, 45, 51, 0.8), transparent);
    pointer-events: none;
}

.plant-decoration::before {
    content: '📁';
    position: absolute;
    bottom: 10%;
    left: 10%;
    font-size: 100px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.plant-decoration::after {
    content: '📋';
    position: absolute;
    bottom: 15%;
    right: 15%;
    font-size: 80px;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite reverse;
}

.license-link {
    font-size: 0.8em; /* Make the text smaller */
    color: #aaaaaa; /* Use a lighter grey color */
    text-decoration: underline; /* Underline to indicate it's a link */
    margin-top: 5px; /* Add some space above the link */
    display: block; /* Ensure it's on its own line */
}

.license-link:hover {
    color: #cccccc; /* Slightly lighter on hover */
}

/* Sections */
.section {
    padding: 100px 50px;
    background-color: #2a2d33;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 300;
}

.section p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

#contact .cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: rgba(232, 213, 196, 0.9);
    color: #2a2d33;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    /* Add margin to ensure it's centered */
    margin: 0 auto; /* This centers the button */
}

/* Tab Styles */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #3a3d43;
    /* Added styles to match website theme */
    background: rgba(58, 61, 67, 0.5); /* Slightly lighter background */
    border-radius: 8px;
    padding: 5px;
    max-width: fit-content;
    margin: 40px auto;
    border: 1px solid #444;
}

.tab-button {
    padding: 12px 24px; /* Increased padding for better touch area */
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #aaa; /* Default color */
    font-size: 16px; /* Consistent font size */
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 6px; /* Rounded corners */
    margin: 0 5px; /* Space between buttons */
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    color: #e8d5c4; /* Hover color */
    background-color: rgba(232, 213, 196, 0.1); /* Subtle hover effect */
}

.tab-button.active {
    color: #e8d5c4; /* Active text color */
    background-color: rgba(232, 213, 196, 0.2); /* Active background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Optional: Active indicator line */
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 80%;
    height: 3px;
    background-color: #e8d5c4;
    transform: translateX(-50%);
    border-radius: 2px;
}

.tab-content {
    display: none; /* Hide inactive content */
}

.tab-content.active {
    display: block; /* Show active content */
    animation: fadeIn 0.3s ease; /* Smooth transition */
}

/* Animation for tab content */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #2a2d33;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: white;
    border: 1px solid #e8d5c4;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #e8d5c4;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #e8d5c4;
}

#signup-form, #signin-form, #forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#signup-form input, #signin-form input, #forgot-password-form input {
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #3a3d43;
    color: white;
    font-size: 16px;
}

#signup-form button, #signin-form button, #forgot-password-form button {
    margin-top: 10px;
    padding: 12px;
    background-color: #e8d5c4;
    color: #2a2d33;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #e8d5c4;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Dashboard & Plans Styles */
.plans-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: #3a3d43;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    text-align: left;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.plan-card h3 {
    font-size: 24px;
    color: #e8d5c4;
    margin-bottom: 15px;
}

.plan-card .price {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 25px;
}

.plan-card .price span {
    font-size: 16px;
    font-weight: 300;
    color: #aaa;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-card ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.plan-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.plan-button.get-plan {
    background-color: #00a67e;
    color: white;
}
.plan-button.get-plan:hover {
    background-color: #008c69;
}

.plan-button.current-plan {
    background-color: #555;
    color: #ccc;
    cursor: not-allowed;
}

/* Device List Styles */
#device-list-container {
    margin-top: 80px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#device-list-container h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #e8d5c4;
}

#device-list {
    list-style: none;
    margin-top: 20px;
}

#device-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3a3d43;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.delete-device-btn {
    background-color: #c94c4c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-device-btn:hover {
    background-color: #a33a3a;
}

#device-list li .device-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#device-list li .device-info span {
    font-size: 0.9em;
    color: #ccc;
}

/* Authorised Accounts List Styles */
#authorised-accounts-title {
    margin-top: 80px;
}

#authorised-accounts-container {
    margin-top: 80px; /* Match device list container */
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Style the add email form */
.add-email-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#new-email-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #3a3d43;
    color: white;
    font-size: 16px;
}

#add-email-btn {
    padding: 12px 20px;
    background-color: #00a67e; /* Match plan button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#add-email-btn:hover {
    background-color: #008c69;
}

/* Style the list inside the new container */
#activated-emails-list {
    list-style: none;
    margin-top: 20px;
}

#activated-emails-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3a3d43;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Style the remove button (from auth.js) */
.remove-email-btn {
    background-color: #c94c4c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-email-btn:hover {
    background-color: #a33a3a;
}

/* styles.css */

/* ... add these new rules ... */

/* Your Account Section */
#account-info-container {
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: #3a3d43;
    padding: 20px;
    border-radius: 8px;
    position: relative; /* This is crucial for positioning the popover */
}

#account-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#user-email-display {
    font-size: 1.1em;
    color: #e8d5c4;
    font-weight: 500;
}

#account-settings-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px; /* Makes the emoji/icon larger */
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#account-settings-btn:hover {
    background-color: #555;
}

/* Account Settings Popover Menu */
#account-settings-popover {
    position: absolute;
    top: 70px; /* Position it below the account-info div */
    right: 20px;
    background-color: #4a4d53;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    width: 200px;
    border: 1px solid #555;
    overflow: hidden; /* Ensures buttons conform to border radius */
}

#account-settings-popover ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

#account-settings-popover ul li button {
    background: none;
    border: none;
    color: white;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#account-settings-popover ul li button:hover {
    background-color: #5a5d63;
}

/* Special style for the delete button */
#account-settings-popover ul li button.danger-btn {
    color: #c94c4c; /* Match your other delete buttons */
}

#account-settings-popover ul li button.danger-btn:hover {
    background-color: #5a5d63;
    color: #ff6b6b; /* Brighter red on hover */
}


/* Download Modal Styles */
.download-modal-content {
    text-align: center;
    max-width: 500px; /* Slightly wider for side-by-side buttons if needed */
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.download-os-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    padding: 15px;
    width: 100%; /* Full width in modal */
}

.os-icon {
    font-size: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 36px;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 14px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .cta-buttons .cta-button {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 28px;
    }
}

