/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable zoom functionality */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent zoom on input focus */
input,
textarea,
select {
    font-size: 16px !important;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00ffff;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .header-icons {
    display: flex;
    gap: 16px;
    z-index: 20;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .header .header-icons {
        gap: 8px;
        margin-right: 10px;
    }
}

/* Common styles for header buttons */
.profile-btn,
.scan-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px #00ffff80;
    transition: all 0.2s ease;
    z-index: 10;
}

.profile-btn:hover,
.scan-btn:hover {
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 24px #00ffffcc;
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
}

.logo-icon {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 20px #00ffff);
    animation: rotate 10s linear infinite, pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 10px #00ffff);
    }

    100% {
        filter: drop-shadow(0 0 30px #00ffff);
    }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #0080ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.generator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
}

/* Input Section */
.input-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.input-section:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.1);
}

.input-section h2 {
    color: #00ffff;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.qr-type-selector {
    display: flex;
    margin-bottom: 25px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.qr-type-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.qr-type-btn.active {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    font-weight: 600;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0b0;
    font-weight: 500;
}

#qr-input,
#wifi-ssid,
#wifi-password,
#wifi-encryption,
#image-url,
#video-url,
#youtube-url {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#qr-input {
    resize: vertical;
    min-height: 120px;
}

#qr-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

#qr-input::placeholder {
    color: #666;
}

#youtube-url:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

#youtube-url::placeholder {
    color: #666;
}

/* Options */
.options-label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0b0;
    font-weight: 500;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.logo-upload {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.logo-upload label {
    display: block;
    margin-bottom: 10px;
}

.logo-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

.logo-upload button {
    margin-top: 10px;
}

.drop-zone {
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.drop-zone.dragover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

#image-preview-container {
    margin-top: 15px;
    text-align: center;
}

#image-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#generate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
}

/* Color Options */
.color-options {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 20px;
}

.color-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #b0b0b0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.radio-option:hover {
    color: #00ffff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked+.radio-custom {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
}

.color-picker-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#primary-color,
#secondary-color {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

#primary-color:hover,
#secondary-color:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.color-picker-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #00ffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.color-picker-btn:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Pattern selector styles removed - using visual grid instead */

.size-selector {
    flex: 1;
    margin-right: 15px;
}

#qr-size {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

#qr-size:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Output Section */
.output-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.output-section:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.1);
}

.qr-display {
    margin-bottom: 25px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Modal Styling - Install modal removed */


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.qr-container {
    border-radius: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.qr-container.has-qr {
    border: 2px solid rgba(0, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

#qr-code {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Loading Animation */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #00ffff;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Error Message */
.error-message {
    display: none;
    color: #ff4444;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.error-message.show {
    display: block;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}



/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 20px;
    color: #666;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    margin-top: 40px;
}




/* Responsive Design */
@media (max-width: 768px) {
    .generator-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .options {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 200px;
    }

    .container {
        padding: 15px;
    }

    .input-section,
    .output-section {
        padding: 20px;
    }

    .color-type-selector {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .input-section h2 {
        font-size: 1.5rem;
    }

    .placeholder-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 5px;
    }

    .main-content {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .generator-section {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-width: 100vw;
    }

    .input-section,
    .output-section {
        padding: 10px;
        border-radius: 12px;
        min-width: 0;
    }

    .input-section h2 {
        font-size: 1.2rem;
    }

    .qr-type-selector {
        flex-direction: column;
        gap: 8px;
    }

    .qr-type-btn {
        font-size: 1rem;
        padding: 10px 0;
        width: 100%;
        border-radius: 8px;
    }

    .input-group label {
        font-size: 1rem;
    }

    #qr-input,
    #wifi-ssid,
    #wifi-password,
    #wifi-encryption,
    #video-url,
    #youtube-url {
        font-size: 1rem;
        padding: 12px;
        border-radius: 8px;
    }

    .logo-upload label {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
        padding: 12px 0;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .qr-display {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        min-width: 0;
    }

    .qr-container {
        width: 100% !important;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .placeholder-icon {
        width: 48px;
        height: 48px;
    }

    .footer {
        font-size: 0.9rem;
        padding: 15px 0 10px;
    }
}

/* Additional Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scan-btn {
    background: rgba(0, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px #00ffff80;
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.scan-btn:hover {
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 24px #00ffffcc;
}

.scanner-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.scanner-modal-content {
    background: #101820;
    border-radius: 18px;
    box-shadow: 0 0 40px #00ffff55;
    padding: 24px 16px 16px 16px;
    position: relative;
    width: 95vw;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-scanner {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-scanner:hover {
    color: #fff;
}

#qr-reader {
    width: 100%;
    min-height: 240px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #181f2a;
    box-shadow: 0 0 18px #00ffff33;
}

.scan-result {
    color: #00ffff;
    font-size: 1.1rem;
    margin-top: 8px;
    word-break: break-all;
    text-align: center;
    width: 100%;
}

.scan-success-badge {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.pulse-icon {
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.scan-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    max-height: 120px;
    overflow-y: auto;
    width: 100%;
}

.scan-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.scan-actions-grid .btn-primary,
.scan-actions-grid .btn-secondary {
    padding: 12px 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.btn-icon {
    font-size: 1.1rem;
}

@media (max-width: 600px) {

    .scan-btn,
    .records-btn {
        width: 40px;
        height: 40px;
    }

    .scanner-modal-content {
        padding: 10px 4px 8px 4px;
        max-width: 98vw;
    }

    #qr-reader {
        min-height: 160px;
    }
}

/* AI Agent button styles moved to profile-btn-item in the profile modal */
@media (max-width: 600px) {
    .profile-btn-item {
        padding: 12px;
    }

    .profile-btn-item .btn-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    .profile-btn-item .btn-text {
        font-size: 14px;
    }
}

/* Button styles moved to common header button styles */

.center-records-btn {
    display: block;
    margin: 0 0 10px 40px;
}

@media (max-width: 600px) {
    .center-records-btn {
        margin: 0 0 10px 20px;
    }
}

.profile-modal,
.records-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.profile-modal-content,
.records-modal-content {
    background: #101820;
    border-radius: 18px;
    box-shadow: 0 0 40px #00ffff55;
    padding: 24px 16px 16px 16px;
    position: relative;
    width: 95vw;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #00ffff;
}

.close-profile,
.close-records {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-profile:hover,
.close-records:hover {
    color: #fff;
}

.profile-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 15px;
}

.profile-btn-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.profile-btn-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.profile-btn-item .btn-icon {
    font-size: 24px;
    margin-right: 15px;
}

.profile-btn-item .btn-text {
    font-weight: 600;
}

.records-list {
    width: 100%;
    margin-top: 12px;
    max-height: 340px;
    overflow-y: auto;
    color: #fff;
}

.record-item {
    background: #181f2a;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffff33;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1rem;
    word-break: break-all;
    transition: box-shadow 0.2s;
}

.record-item strong {
    color: #00ffff;
}

@media (max-width: 600px) {
    .records-modal-content {
        padding: 10px 4px 8px 4px;
        max-width: 98vw;
    }

    .records-list {
        max-height: 220px;
    }
}

/* Platform Modal Styles */
.platform-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.platform-modal-content {
    background: #101820;
    border-radius: 18px;
    box-shadow: 0 0 40px #00ffff55;
    padding: 24px 16px 16px 16px;
    position: relative;
    width: 95vw;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #00ffff;
}

.close-platform {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-platform:hover {
    color: #fff;
}

.platform-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 15px;
}

.platform-btn-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.platform-btn-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.platform-btn-item .btn-icon {
    font-size: 24px;
    margin-right: 15px;
}

.platform-btn-item .btn-text {
    font-weight: 600;
}

@media (max-width: 600px) {
    .platform-modal-content {
        padding: 10px 4px 8px 4px;
        max-width: 98vw;
    }
}

/* App Download Popup Styles */
.app-download-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s;
}

.app-download-content {
    background: #101820;
    border-radius: 18px;
    box-shadow: 0 0 40px #00ffff55;
    padding: 24px;
    max-width: 450px;
    width: 90vw;
    text-align: center;
    color: #fff;
    position: relative;
}

.close-app-popup {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.close-app-popup:hover {
    color: #fff;
}

.app-download-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.app-download-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 15px #00ffff);
    animation: pulse 3s ease-in-out infinite alternate;
}

.app-download-header h2 {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.app-download-description {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-download-buttons .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.app-download-buttons .btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
}

.app-download-buttons .show-again-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    opacity: 0.8;
}

.app-download-buttons .show-again-btn:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .app-download-content {
        padding: 20px;
        max-width: 95vw;
    }

    .app-download-header h2 {
        font-size: 1.3rem;
    }

    .app-download-description {
        font-size: 0.95rem;
    }
}

/* SEO Content Sections */
.seo-content {
    background: #0a0a0a;
    color: #ffffff;
}

.hero-description {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
}

.hero-description h2 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00ffff, #0080ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: gradientShift 3s ease infinite;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #00ffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* How to Use Section */
.how-to-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.how-to-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 50px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: #cccccc;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 20px;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #00ffff;
    padding: 30px;
    border-radius: 10px;
}

.benefit h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit p {
    color: #cccccc;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.faq-item h3 {
    color: #00ffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness for SEO Content */
@media (max-width: 768px) {
    .hero-description h2 {
        font-size: 2rem;
    }

    .features-section h2,
    .how-to-section h2,
    .benefits-section h2,
    .faq-section h2 {
        font-size: 2rem;
    }

    .features-grid,
    .steps-container,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item,
    .step,
    .benefit,
    .faq-item {
        padding: 20px;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .hero-description,
    .features-section,
    .how-to-section,
    .benefits-section,
    .faq-section {
        padding: 40px 20px;
    }
}