/* ─── Global box-sizing baseline ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #1a1a2e; /* Deep midnight blue */
    color: #e6e6ff;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="20" cy="20" r="1" fill="white" opacity="0.4"/><circle cx="60" cy="40" r="0.8" fill="white" opacity="0.3"/><circle cx="100" cy="60" r="1.2" fill="white" opacity="0.5"/><circle cx="140" cy="80" r="0.6" fill="white" opacity="0.3"/><circle cx="180" cy="100" r="1" fill="white" opacity="0.4"/><circle cx="40" cy="120" r="0.8" fill="white" opacity="0.3"/><circle cx="80" cy="140" r="1.2" fill="white" opacity="0.5"/><circle cx="120" cy="160" r="0.6" fill="white" opacity="0.3"/><circle cx="160" cy="180" r="1" fill="white" opacity="0.4"/></svg>');
    background-attachment: fixed;
}

/* Fix iOS Safari background-attachment: fixed rendering glitch */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(34, 40, 69, 0.8); /* Deep indigo with transparency */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4); /* Subtle purple glow */
    border: 1px solid rgba(148, 87, 235, 0.2); /* Subtle zodiac purple border */
    width: 100%;
}

/* Tablet breakpoint: avoid the narrow side-margins */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 90%;
        margin: 0 auto;
    }
}

.navbar {
    background: linear-gradient(90deg, #16213e, #0f3460); /* Cosmic gradient */
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(148, 87, 235, 0.3); /* Subtle zodiac border */
}

.nav-brand {
    color: #bd93f9; /* Mystical purple */
    font-size: 1.6em;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(189, 147, 249, 0.5); /* Glowing effect */
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.nav-links li {
    margin-left: 15px;
    margin-right: 5px;
}

.nav-links a {
    color: #8be9fd; /* Cosmic blue */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #ffb86c; /* Celestial orange */
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(255, 184, 108, 0.7); /* Glowing effect */
}

h1, h2, h3, h4 {
    color: #bd93f9; /* Mystical purple */
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    text-shadow: 0 0 3px rgba(189, 147, 249, 0.3); /* Subtle glow */
}

h1 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 1em;
    background: -webkit-linear-gradient(#bd93f9, #8be9fd);
    background: linear-gradient(#bd93f9, #8be9fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

h1::before, h1::after {
    content: '✧';  /* Star symbol */
    display: inline-block;
    margin: 0 10px;
    color: #ffb86c;
    font-size: 0.55em;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

h2::before {
    content: '✧'; /* Star symbol */
    display: inline-block;
    margin-right: 10px;
    color: #f1fa8c;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(22, 27, 46, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(148, 87, 235, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

/* Modern Form Styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #bd93f9;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Base input styling */
input, textarea, select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(148, 87, 235, 0.3);
    border-radius: 12px;
    background: rgba(40, 42, 54, 0.95);
    color: #f8f8f2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 0 3px rgba(189, 147, 249, 0.15), 0 8px 16px rgba(189, 147, 249, 0.2);
    transform: translateY(-2px);
    background: rgba(40, 42, 54, 1);
}

/* Specific input type styling */
input[type="text"], input[type="email"] {
    max-width: 100%;
}

input[type="password"] {
    max-width: 100%;
    letter-spacing: 2px;
}

input[type="date"], input[type="time"] {
    max-width: 300px;
}

input[type="file"] {
    padding: 12px 16px;
    border: 2px dashed rgba(148, 87, 235, 0.5);
    border-radius: 12px;
    background: rgba(40, 42, 54, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #bd93f9;
    background: rgba(40, 42, 54, 0.9);
}

/* Textarea specific styling based on purpose */
textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Blog content textarea - larger for long-form content */
textarea#content,
textarea[name="content"].cosmic-textarea {
    min-height: 200px;
    max-height: 400px;
    font-size: 16px;
    line-height: 1.7;
}

/* Comment textarea - medium size for comments */
textarea[name="content"]:not(.cosmic-textarea),
textarea[id*="comment"] {
    min-height: 100px;
    max-height: 200px;
    font-size: 15px;
}

/* Contact message textarea - large for detailed messages */
textarea#message,
textarea[name="message"] {
    min-height: 150px;
    max-height: 300px;
    font-size: 16px;
    line-height: 1.6;
}

/* Username inputs - shorter for usernames */
input[name="username"], input#username {
    max-width: 280px;
}

/* Email inputs - medium width for emails */
input[name="email"], input#email {
    max-width: 350px;
}

/* Subject/Title inputs - wider for titles */
input[name="subject"], input#subject,
input[name="title"], input#title {
    max-width: 100%;
}

/* Name inputs - medium width */
input[name="name"], input#name {
    max-width: 300px;
}

/* Enhanced placeholder styling */
input::placeholder, textarea::placeholder {
    color: rgba(139, 233, 253, 0.6);
    font-style: italic;
    opacity: 1;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: rgba(139, 233, 253, 0.4);
}

button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #6b5ecd, #8257e5); /* Cosmic gradient */
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(107, 94, 205, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #8257e5, #bd93f9); /* Reversed gradient */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(130, 87, 229, 0.5);
}

.blog-post, .comment {
    border-bottom: 1px solid rgba(148, 87, 235, 0.3); /* Subtle zodiac purple */
    padding: 20px 0;
    margin-bottom: 15px;
    position: relative;
    background: rgba(40, 42, 54, 0.4); /* Subtle dark background */
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.blog-post {
    position: relative;
    overflow: hidden;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23bd93f9" opacity="0.2"/><circle cx="20" cy="20" r="0.8" fill="%238be9fd" opacity="0.2"/><circle cx="80" cy="80" r="0.8" fill="%23ff79c6" opacity="0.2"/></svg>');
    opacity: 0.5;
    z-index: -1;
}

.blog-post:hover {
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.3); /* Cosmic glow */
    transform: translateY(-3px);
}

.blog-post h3 {
    color: #ff79c6; /* Bright pink */
    margin-top: 0;
    font-size: 1.5em;
    position: relative;
    overflow: hidden;
    padding-left: 5px;
}

.blog-post h3:before {
    content: '★';
    color: #ffb86c;
    margin-right: 10px;
    font-size: 0.8em;
    vertical-align: middle;
}

.blog-post p {
    color: #f8f8f2; /* Light text */
    line-height: 1.6;
}

.blog-post p:nth-child(2) {
    color: #f1fa8c; /* Celestial yellow */
    font-style: italic;
    font-size: 0.9em;
}

.blog-content {
    white-space: pre-wrap;
    line-height: 1.8;
    margin: 20px 0;
}

.blog-post:not(:last-child)::after {
    content: '⋆｡˚☽˚｡⋆';
    display: block;
    text-align: center;
    color: rgba(189, 147, 249, 0.6);
    font-size: 1.2em;
    margin-top: 25px;
    letter-spacing: 5px;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: rgba(26, 32, 55, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(148, 87, 235, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><circle cx="150" cy="150" r="1" fill="%23bd93f9" opacity="0.1"/><circle cx="100" cy="100" r="0.8" fill="%238be9fd" opacity="0.1"/><circle cx="200" cy="200" r="0.8" fill="%23ff79c6" opacity="0.1"/></svg>');
    opacity: 0.5;
    z-index: -1;
}

.profile-image-container {
    position: relative;
    margin-bottom: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(189, 147, 249, 0.8);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(189, 147, 249, 0.8);
}

.profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b5ecd, #8257e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
    border: 3px solid rgba(189, 147, 249, 0.8);
    box-shadow: 0 0 20px rgba(189, 147, 249, 0.6);
}

.profile-zodiac {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 121, 198, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zodiac-symbol {
    font-size: 24px;
    line-height: 1;
}

.zodiac-name {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    background: rgba(40, 42, 54, 0.6);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid #bd93f9;
}

.info-label {
    font-size: 12px;
    color: #f1fa8c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: #f8f8f2;
}

.password-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 87, 235, 0.3);
}

.password-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff79c6;
}

/* Cosmic Form Container Styling */
.cosmic-form-container {
    background: rgba(34, 40, 69, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid rgba(148, 87, 235, 0.3);
    box-shadow: 0 8px 32px rgba(189, 147, 249, 0.15);
    backdrop-filter: blur(10px);
}

.cosmic-form-container h2 {
    text-align: center;
    color: #bd93f9;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.cosmic-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form introduction text */
.form-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(189, 147, 249, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.2);
}

.form-intro p {
    color: #e6e6ff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Form note/footer */
.form-note {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: rgba(139, 233, 253, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.form-note p {
    color: #8be9fd;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Form help text */
.form-help {
    display: block;
    margin-top: 8px;
    color: #8be9fd;
    font-size: 13px;
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.form-group:hover .form-help {
    opacity: 1;
}

/* Modern Input Animations and States */
.form-group {
    position: relative;
}

.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-8px);
    font-size: 12px;
    color: #bd93f9;
}

/* Input validation states */
input:valid {
    border-color: rgba(80, 250, 123, 0.5);
}

input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 85, 85, 0.5);
}

/* Floating label effect for special inputs */
.floating-label {
    position: relative;
}

.floating-label input,
.floating-label textarea {
    padding-top: 24px;
    padding-bottom: 12px;
}

.floating-label label {
    position: absolute;
    top: 16px;
    left: 20px;
    background: rgba(40, 42, 54, 0.9);
    padding: 0 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    color: rgba(139, 233, 253, 0.6);
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: #bd93f9;
    font-weight: 600;
}

/* Comment Form Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Comment form section styling */
.comment-form-section {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.comment-form {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-comment-form {
    animation: fadeInUp 0.3s ease;
}

/* Success notification styling */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.95), rgba(80, 250, 123, 0.8));
    color: #282a36;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(80, 250, 123, 0.3);
    border: 1px solid rgba(80, 250, 123, 0.5);
    animation: slideIn 0.3s ease;
}

/* Comment box styling in blog.html */
.dynamic-comment-box {
    background: rgba(40, 42, 54, 0.95);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid rgba(189, 147, 249, 0.3);
    transition: all 0.3s ease;
}

.dynamic-comment-box textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 10px;
}

.dynamic-comment-box button {
    background: linear-gradient(135deg, #6b5ecd, #8257e5);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dynamic-comment-box button:hover {
    background: linear-gradient(135deg, #8257e5, #bd93f9);
    transform: translateY(-2px);
}

/* Form submission states */
.submission-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submission-status.success {
    background: rgba(80, 250, 123, 0.2);
    color: #50fa7b;
    border: 1px solid rgba(80, 250, 123, 0.5);
}

.submission-status.error {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.5);
}

.submission-status.sending {
    background: rgba(189, 147, 249, 0.2);
    color: #bd93f9;
    border: 1px solid rgba(189, 147, 249, 0.5);
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background: linear-gradient(90deg, #ff5555, #ff7979);
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background: linear-gradient(90deg, #ffb86c, #feca57);
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background: linear-gradient(90deg, #50fa7b, #00b894);
}

/* Cosmic Input Classes */
.cosmic-input {
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid rgba(189, 147, 249, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: #f8f8f2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cosmic-input:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 0 3px rgba(189, 147, 249, 0.15), 0 8px 16px rgba(189, 147, 249, 0.2);
    transform: translateY(-2px);
    background: rgba(40, 42, 54, 1);
}

.cosmic-textarea {
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid rgba(189, 147, 249, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: #f8f8f2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cosmic-textarea:focus {
    outline: none;
    border-color: #bd93f9;
    box-shadow: 0 0 0 3px rgba(189, 147, 249, 0.15), 0 8px 16px rgba(189, 147, 249, 0.2);
    transform: translateY(-2px);
    background: rgba(40, 42, 54, 1);
}

/* Blog specific textarea styling */
.cosmic-textarea[name="content"] {
    min-height: 200px;
    max-height: 400px;
    font-size: 16px;
    line-height: 1.7;
}

/* Contact form message textarea */
.cosmic-textarea[name="message"] {
    min-height: 150px;
    max-height: 300px;
    font-size: 16px;
    line-height: 1.6;
}

/* Special styling for different form purposes */
.login-form input {
    max-width: 320px;
    margin: 0 auto;
}

.register-form input[type="text"],
.register-form input[type="email"] {
    max-width: 350px;
}

.register-form input[type="password"] {
    max-width: 300px;
}

.profile-form input[type="text"],
.profile-form input[type="email"] {
    max-width: 400px;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    .cosmic-form-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    input, textarea, .cosmic-input, .cosmic-textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    input[type="text"], input[type="email"], input[type="password"] {
        min-width: auto;
        max-width: 100%;
    }
    
    .floating-label input,
    .floating-label textarea {
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    .cosmic-input, .cosmic-textarea {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .cosmic-form-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    input, textarea, .cosmic-input, .cosmic-textarea {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .cosmic-textarea {
        min-height: 100px;
    }
}

/* Modern Input States and Effects */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input, .input-group textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Input icons */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 50px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(139, 233, 253, 0.6);
    font-size: 18px;
    transition: color 0.3s ease;
}

.input-with-icon input:focus + .input-icon {
    color: #bd93f9;
}

/* Character counter for textareas */
.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: rgba(139, 233, 253, 0.6);
    transition: color 0.3s ease;
}

.char-counter.near-limit {
    color: #ffb86c;
}

.char-counter.over-limit {
    color: #ff5555;
}

/* Search input specific styling */
input[type="search"] {
    border-radius: 25px;
    padding: 12px 20px;
    background: rgba(40, 42, 54, 0.95);
    border: 2px solid rgba(189, 147, 249, 0.3);
}

input[type="search"]:focus {
    border-color: #bd93f9;
    box-shadow: 0 0 0 3px rgba(189, 147, 249, 0.15);
}

/* Select dropdown styling */
select {
    appearance: none;
    padding-right: 20px;
}

select:focus {
    /* no custom arrow */
}

.cosmic-link {
    color: #bd93f9;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.cosmic-link:hover {
    color: #ff79c6;
    text-shadow: 0 0 8px rgba(255, 121, 198, 0.5);
}

/* Navigation Profile Image */
.nav-profile {
    position: relative;
    margin-left: 15px;
}

.nav-profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #bd93f9;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.5);
}

.nav-profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.8);
    border-color: #ff79c6;
}

/* Navigation Profile Section */
.nav-profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.nav-username {
    color: #bd93f9;
    font-weight: 500;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(189, 147, 249, 0.3);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-username:hover {
    color: #ff79c6;
    text-shadow: 0 0 8px rgba(255, 121, 198, 0.5);
}

/* Adjust navbar layout for profile image */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
}

/* Responsive adjustments for navbar are in the hamburger section below */

/* Media Queries */
@media (min-width: 768px) {
    .profile-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }
    
    .profile-image-container {
        margin-bottom: 0;
    }
}

/* Cosmic Loader Animation */
.cosmic-loader {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.cosmic-loader.active {
    display: flex;
}

.cosmic-loader .planets {
    position: relative;
    width: 200px;
    height: 200px;
}

.cosmic-loader .planet {
    position: absolute;
    border-radius: 50%;
}

.cosmic-loader .sun {
    width: 40px;
    height: 40px;
    background: #ffb86c;
    top: 80px;
    left: 80px;
    box-shadow: 0 0 20px rgba(255, 184, 108, 0.8);
    z-index: 2;
}

.cosmic-loader .orbit {
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 50%;
}

.cosmic-loader .orbit-1 {
    width: 100px;
    height: 100px;
    top: 50px;
    left: 50px;
    animation: rotate 2s linear infinite;
}

.cosmic-loader .orbit-2 {
    width: 150px;
    height: 150px;
    top: 25px;
    left: 25px;
    animation: rotate 4s linear infinite;
}

.cosmic-loader .planet-1 {
    width: 15px;
    height: 15px;
    background: #bd93f9;
    top: 0;
    left: 42px;
    box-shadow: 0 0 10px rgba(189, 147, 249, 0.6);
}

.cosmic-loader .planet-2 {
    width: 20px;
    height: 20px;
    background: #8be9fd;
    top: 65px;
    left: 0;
    box-shadow: 0 0 10px rgba(139, 233, 253, 0.6);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cosmic-loader .loading-text {
    position: absolute;
    bottom: 50px;
    color: #bd93f9;
    font-size: 1.2em;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Enhanced Home Page Styling */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.cosmic-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.cosmic-header h1 {
    position: relative;
    z-index: 2;
}

.zodiac-circle {
    --zodiac-radius: 62px;
    display: flex;
    justify-content: center;
    margin: 20px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(148, 87, 235, 0.4);
    position: relative;
    animation: glow 4s ease-in-out infinite alternate;
    overflow: hidden;
    z-index: 1;
}

.sun-moon-switch {
    margin-top: 0;
    margin-bottom: 28px;
}

.sun-moon-switch .celestial-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4em;
    text-shadow: 0 0 10px rgba(189, 147, 249, 0.9);
}

.sun-moon-switch .sun-icon {
    color: #ffb86c;
    animation: sunPhase 3s ease-in-out infinite;
}

.sun-moon-switch .moon-icon {
    color: #8be9fd;
    animation: moonPhase 3s ease-in-out infinite;
}

.zodiac-signs {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 30s linear infinite;
}

.zodiac-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    color: #f8f8f2;
    text-shadow: 0 0 8px rgba(189, 147, 249, 0.9);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.zodiac-sign {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.2em;
    color: #bd93f9;
    transform: rotate(calc(var(--index) * var(--angle-step, 30deg))) translateY(calc(-1 * var(--zodiac-radius))) rotate(calc(var(--index) * var(--counter-angle-step, -30deg)));
    transform-origin: center;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(148, 87, 235, 0.4), inset 0 0 10px rgba(148, 87, 235, 0.4);
    }
    to {
        box-shadow: 0 0 20px rgba(148, 87, 235, 0.7), inset 0 0 20px rgba(148, 87, 235, 0.7);
    }
}

@keyframes sunPhase {
    0%, 48% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes moonPhase {
    0%, 48% {
        opacity: 0;
    }
    50%, 100% {
        opacity: 1;
    }
}

.cosmic-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #bd93f9, transparent);
    margin: 15px 0 25px;
}

.highlight {
    color: #e6e6ff;
    font-weight: 500;
}

.about-section {
    background: rgba(34, 40, 69, 0.6);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 3px solid #bd93f9;
    position: relative;
    overflow: hidden;
}

.services-section {
    margin-bottom: 40px;
}

.service-note {
    font-style: italic;
    color: #f1fa8c;
    text-align: center;
    margin-bottom: 25px;
}

.service-category {
    margin-bottom: 30px;
}

.service-category h3 {
    color: #ff79c6;
    text-align: center;
    margin-bottom: 25px;
}

.service-card {
    display: flex;
    background: rgba(40, 42, 54, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 2px solid #bd93f9;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(40, 42, 54, 0.8);
}

.service-icon {
    font-size: 2.5em;
    color: #ffb86c;
    margin-right: 20px;
    display: flex;
    align-items: center;
    min-width: 50px;
    justify-content: center;
}

.service-content {
    flex: 1;
}

.service-content h4 {
    margin-top: 0;
    color: #8be9fd;
}

.cta-section {
    background: linear-gradient(135deg, rgba(34, 40, 69, 0.8), rgba(26, 26, 46, 0.9));
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid rgba(148, 87, 235, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
    color: #ff79c6;
    margin-bottom: 15px;
}

.cta-title::after {
    content: '✧';
    display: inline-block;
    margin-left: 10px;
    color: #f1fa8c;
}

.cosmic-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #6b5ecd, #8257e5);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(107, 94, 205, 0.4);
}

.cosmic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 94, 205, 0.6);
    background: linear-gradient(135deg, #8257e5, #bd93f9);
}

/* Enhanced form submit button */
.cosmic-button.form-submit {
    width: 100%; /* Full width button */
    padding: 15px;
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #6b5ecd, #bd93f9);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cosmic-button.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 94, 205, 0.4);
    background: linear-gradient(135deg, #8257e5, #ff79c6);
}

.cosmic-button.form-submit .button-text {
    position: relative;
    z-index: 2;
}

.cosmic-button.form-submit .button-icon {
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cosmic-button.form-submit:hover .button-icon {
    transform: rotate(180deg) scale(1.2);
}

/* Mini Loader for Reactions */
.mini-loader {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 9999;
}

.mini-loader.active {
    opacity: 1;
    transform: scale(1);
}

.mini-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    margin-left: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bd93f9, #6272a4);
    box-shadow: 0 0 8px rgba(189, 147, 249, 0.8);
}

.mini-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 50%;
    animation: mini-orbit-rotate 1s linear infinite;
}

.mini-moon {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #8be9fd;
    box-shadow: 0 0 4px rgba(139, 233, 253, 0.8);
}

@keyframes mini-orbit-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 2em;
    }
    
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    
    h1::before, h1::after {
        display: none;
    }
}

/* Blog-specific styles */
.blog-post h3 {
    position: relative;
    overflow: hidden;
    padding-left: 5px;
}

.blog-post h3:before {
    content: '★';
    color: #ffb86c;
    margin-right: 10px;
    font-size: 0.8em;
    vertical-align: middle;
}

.blog-post:hover .like-btn,
.blog-post:hover .dislike-btn,
.blog-post:hover .comment-btn {
    opacity: 1;
}

.like-btn, .dislike-btn, .comment-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.blog-post:hover::after {
    transform: translateY(0);
    opacity: 0.05;
}

.blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
    opacity: 0;
    z-index: -1;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Admin Blog Styles */
.admin-blogs-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(189, 147, 249, 0.15), rgba(255, 121, 198, 0.15));
    border-radius: 15px;
    border: 2px solid rgba(189, 147, 249, 0.4);
}

.admin-blogs-section h2 {
    color: #bd93f9;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.admin-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-blog-card {
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(189, 147, 249, 0.3);
    border-color: #bd93f9;
}

.admin-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.admin-blog-header h3 {
    color: #ff79c6;
    margin: 0;
    font-size: 1.3em;
    flex: 1;
}

.admin-badge {
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    color: #282a36;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.admin-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.blog-date {
    color: #6272a4;
}

.blog-stats-mini {
    display: flex;
    gap: 15px;
    color: #8be9fd;
}

.admin-blog-content {
    color: #f8f8f2;
    line-height: 1.6;
    margin-bottom: 20px;
}

.admin-blog-actions {
    display: flex;
    justify-content: flex-end;
}

.view-blog-btn {
    background: linear-gradient(135deg, #6b5ecd, #8257e5);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-blog-btn:hover {
    background: linear-gradient(135deg, #8257e5, #bd93f9);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(130, 87, 229, 0.5);
}

/* Enhanced Blog Post Styles */
.blog-post {
    border-bottom: 1px solid rgba(148, 87, 235, 0.3);
    padding: 20px 0;
    margin-bottom: 15px;
    position: relative;
    background: rgba(40, 42, 54, 0.4);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.blog-post.admin-authored {
    border: 2px solid rgba(189, 147, 249, 0.5);
    background: linear-gradient(135deg, rgba(189, 147, 249, 0.1), rgba(255, 121, 198, 0.1));
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.blog-post-header h3 {
    color: #ff79c6;
    margin: 0;
    font-size: 1.5em;
    flex: 1;
}

.admin-author-badge {
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    color: #282a36;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 15px;
}

.blog-meta {
    color: #6272a4;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.blog-preview {
    color: #f8f8f2;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #bd93f9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #ff79c6;
}

.blog-interactions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.no-blogs {
    text-align: center;
    color: #6272a4;
    font-style: italic;
    padding: 40px;
    background: rgba(40, 42, 54, 0.4);
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-blog-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-badge {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .blog-post-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-author-badge {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .blog-interactions {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Alert Messages */
.alert {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.2), rgba(80, 250, 123, 0.1));
    border: 1px solid rgba(80, 250, 123, 0.5);
    color: #50fa7b;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 85, 85, 0.2), rgba(255, 85, 85, 0.1));
    border: 1px solid rgba(255, 85, 85, 0.5);
    color: #ff5555;
}

/* Cosmic Messages for Forms */
.cosmic-message {
    margin: 20px auto;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.cosmic-message.success-message {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.15), rgba(139, 233, 253, 0.1));
    border: 2px solid rgba(80, 250, 123, 0.4);
    color: #50fa7b;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.3);
}

.cosmic-message.error-message {
    background: linear-gradient(135deg, rgba(255, 121, 198, 0.15), rgba(255, 85, 85, 0.1));
    border: 2px solid rgba(255, 121, 198, 0.4);
    color: #ff79c6;
    text-shadow: 0 0 10px rgba(255, 121, 198, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Page Enhancements */
.admin-badge {
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    color: #282a36;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.form-help {
    color: #6272a4;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.password-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(40, 42, 54, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(189, 147, 249, 0.3);
}

.password-section h3 {
    color: #ff79c6;
    margin-bottom: 20px;
    text-align: center;
}
/* ─── Active nav link ─── */
.nav-links a.active {
    color: #ffb86c;
    background: rgba(255, 184, 108, 0.15);
    border-radius: 5px;
    text-shadow: 0 0 5px rgba(255, 184, 108, 0.5);
    font-weight: 600;
}

/* ─── Hamburger button ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #bd93f9;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ─── Mobile nav drawer ─── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        padding: 10px 15px;
        max-width: 100%;
    }

    .nav-brand {
        font-size: 1.1em;
        flex: 1;
    }

    .navbar-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 85vw);
        height: 100vh;
        background: linear-gradient(180deg, #16213e, #0f3460);
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 25px 30px;
        z-index: 150;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .navbar-right.open {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .nav-overlay.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 4px;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 12px;
        width: 100%;
        border-radius: 8px;
        font-size: 1em;
    }

    .nav-profile-section {
        position: static;
        flex-direction: row;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(148, 87, 235, 0.3);
        width: 100%;
    }

    .nav-username {
        font-size: 13px;
    }
}

/* ─── Zodiac background symbols ─── */
.zodiac-bg .zodiac-symbol {
    position: fixed;
    font-size: 2em;
    opacity: 0.08;
    pointer-events: none;
    color: #bd93f9;
    z-index: -1;
}

@media (max-width: 768px) {
    .zodiac-bg {
        display: none;
    }
}

/* ─── Page enter animation ─── */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

main.container {
    animation: pageEnter 0.35s ease both;
}

/* ─── Site Footer ─── */
.site-footer {
    background: linear-gradient(90deg, #16213e, #0f3460);
    border-top: 2px solid rgba(148, 87, 235, 0.3);
    padding: 30px 20px 20px;
    margin-top: 40px;
    text-align: center;
    color: #6272a4;
    font-size: 0.9em;
}

.site-footer .footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer .footer-tagline {
    color: #bd93f9;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}

.site-footer .footer-links a {
    color: #8be9fd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: #ffb86c;
}

.site-footer .footer-copy {
    color: #44475a;
    font-size: 0.8em;
    margin-top: 10px;
}

/* ─── Contact login wall ─── */
.login-wall-card {
    background: rgba(40, 42, 54, 0.7);
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
}

.login-wall-card p {
    color: #e6e6ff;
    margin-bottom: 25px;
    line-height: 1.7;
}

.login-wall-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-wall-actions .cosmic-button {
    min-width: 140px;
}

.login-wall-actions .cosmic-button.secondary,
.welcome-banner-actions .cosmic-button.secondary {
    background: linear-gradient(135deg, #44475a, #6272a4);
}

.login-wall-actions .cosmic-button.secondary:hover,
.welcome-banner-actions .cosmic-button.secondary:hover {
    background: linear-gradient(135deg, #6272a4, #8be9fd);
}

/* ─── Blog read-more button ─── */
.read-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6b5ecd, #8257e5);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(107, 94, 205, 0.3);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #8257e5, #bd93f9);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(130, 87, 229, 0.5);
}

.blog-post.clickable-card {
    cursor: pointer;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #6272a4;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #bd93f9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ff79c6;
}

.breadcrumb .crumb-sep {
    color: #44475a;
}

.breadcrumb .crumb-current {
    color: #f8f8f2;
    font-weight: 500;
}

/* ─── Welcome banner after registration ─── */
.welcome-banner {
    background: linear-gradient(135deg, rgba(80, 250, 123, 0.15), rgba(139, 233, 253, 0.1));
    border: 2px solid rgba(80, 250, 123, 0.4);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 30px;
    animation: slideInDown 0.5s ease-out;
}

.welcome-banner h2 {
    color: #50fa7b;
    margin-bottom: 10px;
}

.welcome-banner p {
    color: #e6e6ff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.welcome-banner-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ─── Mobile service card improvements ─── */
@media (max-width: 768px) {
    .service-card {
        align-items: center;
        text-align: center;
        border-left: none;
        border-bottom: 1px solid rgba(189, 147, 249, 0.2);
        padding-bottom: 20px;
    }

    .service-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .service-content {
        width: 100%;
    }
}

/* ─── Nav zodiac sign ─── */
.nav-zodiac {
    color: #ffb86c;
    font-size: 1.1em;
}

@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
}
