* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Default theme (Ocean) */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: rgba(255, 255, 255, 0.8);
    --header-bg: rgba(255, 255, 255, 0.1);
    --button-primary: linear-gradient(45deg, #667eea, #764ba2);
    --button-secondary: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --border-color: #e1e1e1;
}

[data-theme="sunset"] {
    --primary-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b9d 100%);
    --button-primary: linear-gradient(45deg, #ff9a56, #ff6b9d);
}

[data-theme="forest"] {
    --primary-gradient: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --button-primary: linear-gradient(45deg, #4ecdc4, #44a08d);
}

[data-theme="neon"] {
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #9b59b6 100%);
    --button-primary: linear-gradient(45deg, #00d4ff, #9b59b6);
}

[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --card-bg: rgba(45, 55, 70, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-light: #ffffff;
    --header-bg: rgba(0, 0, 0, 0.3);
    --button-primary: linear-gradient(45deg, #3498db, #8e44ad);
    --border-color: #34495e;
}

[data-theme="light"] {
    --primary-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #2c3e50;
    --header-bg: rgba(0, 0, 0, 0.1);
    --button-primary: linear-gradient(45deg, #007bff, #0056b3);
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme-specific logo colors */
[data-theme="light"] .logo {
    color: #2c3e50;
    text-shadow: none;
}

/* Logo image visibility improvements */
.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    filter: none;
}

[data-theme="light"] .logo-img {
    filter: brightness(0.3) saturate(2);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Theme-specific nav button styles */
[data-theme="light"] .nav-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.nav-btn.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: bold;
}

.main {
    flex: 1;
    padding: 2rem;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Theme-specific hero title colors */
[data-theme="light"] .hero-title {
    color: #2c3e50;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme-specific gradient text colors */
[data-theme="sunset"] .gradient-text {
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(45deg, #3498db, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="forest"] .gradient-text {
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="neon"] .gradient-text {
    background: linear-gradient(45deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Theme-specific hero subtitle colors */
[data-theme="light"] .hero-subtitle {
    color: #495057;
}

.shortener-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.url-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.shorten-btn {
    padding: 1rem 2rem;
    background: var(--button-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shorten-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.custom-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #667eea;
}

.terms-disclaimer {
    text-align: center;
    margin: 0.3rem auto;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.terms-disclaimer p {
    margin: 0;
    line-height: 1.4;
}

.terms-disclaimer a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-disclaimer a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Theme-specific styling for terms disclaimer */
[data-theme="light"] .terms-disclaimer a {
    color: #007bff;
}

[data-theme="light"] .terms-disclaimer a:hover {
    color: #0056b3;
}

[data-theme="dark"] .terms-disclaimer {
    color: #ffffff;
}

[data-theme="dark"] .terms-disclaimer a {
    color: #5dade2;
}

[data-theme="dark"] .terms-disclaimer a:hover {
    color: #85c1e9;
}

/* Dark theme form input styling */
[data-theme="dark"] .url-input,
[data-theme="dark"] .custom-input {
    background: rgba(52, 73, 94, 0.8);
    border-color: #4a5a6a;
    color: #ffffff;
}

[data-theme="dark"] .url-input::placeholder,
[data-theme="dark"] .custom-input::placeholder {
    color: #bdc3c7;
}

[data-theme="dark"] .url-input:focus,
[data-theme="dark"] .custom-input:focus {
    border-color: #3498db;
    background: rgba(52, 73, 94, 0.9);
}

/* Dark theme result styling */
[data-theme="dark"] .result {
    background: linear-gradient(45deg, #3498db, #8e44ad);
    border-color: #8e44ad;
}

[data-theme="dark"] .result h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .short-url {
    background: rgba(45, 55, 70, 0.8);
    border-color: #4a5a6a;
    color: #ffffff;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(45deg, #3498db, #8e44ad);
    border-radius: 12px;
    border: 2px solid #8e44ad;
    color: white;
}

.result h3 {
    color: #ffffff !important;
}

.result.hidden {
    display: none;
}

.result h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.url-result {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.short-url {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-family: monospace;
    font-size: 1rem;
}

.copy-btn {
    padding: 0.8rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #218838;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Dark theme feature cards with better contrast */
[data-theme="dark"] .feature {
    background: rgba(52, 73, 94, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .feature p {
    color: #e8e8e8 !important;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Ad Container Styles */
.ad-container {
    margin: 2rem auto;
    max-width: 728px;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #e1e1e1;
}

.ad-container-sidebar {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    text-align: center;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
}

.dashboard-header h2 {
    font-size: 2rem;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Light theme dashboard header styling */
[data-theme="light"] .dashboard-header {
    color: #2c3e50;
}

[data-theme="light"] .back-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.urls-list {
    display: grid;
    gap: 1rem;
}

/* Empty state styling */
.urls-list p {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 1.1rem;
    margin: 2rem 0;
}

.urls-list i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Light theme empty state styling */
[data-theme="light"] .urls-list p {
    color: #495057 !important;
}

[data-theme="light"] .urls-list i {
    color: #6c757d !important;
}

.url-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.url-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.url-info p {
    color: #666;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Light theme specific URL item styling */
[data-theme="light"] .url-item {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e9ecef;
}

[data-theme="light"] .url-info h4 {
    color: #2c3e50;
}

[data-theme="light"] .url-info p {
    color: #495057;
}

[data-theme="light"] .url-info small {
    color: #6c757d !important;
}

/* Dark theme URL item styling for better contrast */
[data-theme="dark"] .url-item {
    background: rgba(52, 73, 94, 0.9);
    border: 1px solid #4a5a6a;
}

[data-theme="dark"] .url-info h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .url-info p {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .url-info small {
    color: #d1d1d1 !important;
}

[data-theme="dark"] .url-stats {
    color: #3498db !important;
}

.url-stats {
    text-align: center;
    color: #667eea;
    font-weight: bold;
}

.url-actions {
    display: flex;
    gap: 0.5rem;
}

.url-action-btn {
    padding: 0.4rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.url-action-btn:hover {
    background: #5a6268;
}

.url-action-btn.analytics-btn {
    background: #667eea;
}

.url-action-btn.analytics-btn:hover {
    background: #5a67d8;
}

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

/* PDF Upload Styles */
.pdf-upload-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #ff6b6b;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-header p {
    color: #666;
    font-size: 1rem;
}

.pdf-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdf-advanced-options {
    margin-top: 0.5rem;
}

.file-input-wrapper {
    position: relative;
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-input-wrapper:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.file-input-wrapper.dragover {
    border-color: #ff6b6b;
    background: #fff5f5;
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    top: 0;
    left: 0;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #666;
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.file-input-label i {
    font-size: 3rem;
    color: #ff6b6b;
}

.file-input-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.file-input-subtext {
    font-size: 0.9rem;
    color: #999;
}

.upload-btn {
    padding: 1rem 2rem;
    background: var(--button-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dark theme PDF upload styling */
[data-theme="dark"] .pdf-upload-card {
    background: rgba(52, 73, 94, 0.95);
    border-color: #ff6b6b;
}

[data-theme="dark"] .upload-header h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .upload-header p {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .file-input-wrapper {
    background: rgba(45, 55, 70, 0.8);
    border-color: #4a5a6a;
}

[data-theme="dark"] .file-input-wrapper:hover,
[data-theme="dark"] .file-input-wrapper.dragover {
    background: rgba(45, 55, 70, 0.9);
    border-color: #ff6b6b;
}

[data-theme="dark"] .file-input-label {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .file-input-text {
    color: #ffffff !important;
}

[data-theme="dark"] .file-input-subtext {
    color: #bdc3c7 !important;
}

[data-theme="dark"] .file-input-label i {
    color: #ff6b6b !important;
}

.pdf-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

/* Dark theme PDF result styling */
[data-theme="dark"] .pdf-result {
    background: rgba(52, 73, 94, 0.9);
    border-left-color: #ff6b6b;
}

.file-info {
    margin-bottom: 1rem;
}

.file-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dark theme file info styling */
[data-theme="dark"] .file-info h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .file-info h3 i {
    color: #ff6b6b !important;
}

.expiration-warning {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 2s infinite;
}

.expiration-warning.hidden {
    display: none !important;
}

/* Dark theme expiration warning styling */
[data-theme="dark"] .expiration-warning {
    color: #ff6b6b !important;
}

[data-theme="dark"] .expiration-warning i {
    color: #ff6b6b !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-upload-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .file-input-wrapper {
        padding: 1.5rem;
    }

    .file-input-label i {
        font-size: 2rem;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.refresh-btn:hover {
    background: #218838;
    transform: rotate(180deg);
}

.refresh-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.refresh-btn:disabled:hover {
    transform: none;
}

.modal-header h2 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .fas.fa-crown {
    color: #ffd700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.modal-body h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-body p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pricing {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.period {
    color: #666;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.features-list {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 0 auto 2rem auto;
}

.features-list li {
    padding: 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list .fas.fa-check {
    color: #28a745;
}

.premium-btn-disabled {
    background: #e9ecef;
    color: #6c757d;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-icon {
    font-size: 2rem;
    color: #667eea;
}

.cookie-text h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #667eea;
    color: white;
}

.cookie-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: #6c757d;
    color: white;
}

.cookie-btn-secondary:hover {
    background: #5a6268;
}

.cookie-btn-reject {
    background: #dc3545;
    color: white;
}

.cookie-btn-reject:hover {
    background: #c82333;
}

/* PDF Terms of Service Modal */
.terms-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    background: #f8f9fa;
    position: relative;
}

.terms-content::after {
    content: "↓ Scroll to read all terms ↓";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #f8f9fa 50%);
    text-align: center;
    padding: 1rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    pointer-events: none;
}

.terms-content p {
    color: #333;
    margin-bottom: 1rem;
}

.terms-content ol {
    color: #333;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.terms-content ol li {
    margin-bottom: 0.5rem;
}

.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.terms-section h4 {
    color: #495057;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.terms-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.terms-btn-accept {
    background: #28a745;
    color: white;
}

.terms-btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.terms-btn-deny {
    background: #dc3545;
    color: white;
}

.terms-btn-deny:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.terms-btn-disabled {
    background: #6c757d !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.terms-btn-disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    .terms-actions {
        flex-direction: column;
    }

    .terms-btn {
        width: 100%;
    }
}

.cookie-btn-reject {
    background: #dc3545;
    color: white;
}

.cookie-btn-reject:hover {
    background: #c82333;
}

/* Cookie Settings Modal */
.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.cookie-category h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.cookie-required {
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #667eea;
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-actions-modal {
    text-align: center;
    margin-top: 2rem;
}

/* QR Code Modal Styles */
.qr-customization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.qr-preview-section {
    text-align: center;
}

.qr-preview-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 2px dashed #ddd;
}

.qr-preview-container img {
    max-width: 100%;
    height: auto;
}

.qr-download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.qr-download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.qr-options h3 {
    margin-bottom: 1rem;
    color: #333;
}

.qr-option {
    margin-bottom: 1.5rem;
}

.qr-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.qr-option input,
.qr-option select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.qr-option input:focus,
.qr-option select:focus {
    border-color: #667eea;
}

.qr-option input[type="color"] {
    height: 50px;
    padding: 0.3rem;
    cursor: pointer;
}

.qr-preset-colors {
    margin-top: 1.5rem;
}

.qr-preset-colors h4 {
    margin-bottom: 0.8rem;
    color: #333;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.color-preset {
    padding: 0.8rem 0.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
}

.color-preset:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Privacy Controls */
.privacy-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.privacy-link {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-link:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Service Status Modal Styles */
.status-indicator {
    text-align: center;
    margin-bottom: 2rem;
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.status-operational {
    background: #28a745;
}

.status-degraded {
    background: #ffc107;
}

.status-down {
    background: #dc3545;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.service-metrics {
    margin-bottom: 2rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.metric h4 {
    margin: 0;
    color: #333;
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.metric-status.operational {
    color: #28a745;
}

.metric-status.degraded {
    color: #ffc107;
}

.metric-status.down {
    color: #dc3545;
}

.uptime-stats {
    text-align: center;
    margin-bottom: 2rem;
}

.uptime-stats h4 {
    margin-bottom: 1rem;
    color: #333;
}

.uptime-bars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.uptime-day {
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uptime-day:hover {
    transform: scale(1.1);
}

.uptime-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.status-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.status-footer a {
    color: #667eea;
    text-decoration: none;
}

.status-footer a:hover {
    text-decoration: underline;
}

/* Theme Selector Styles */
.theme-selector {
    padding: 1rem 0;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--button-primary);
}

.theme-option.active {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-header {
    height: 30%;
    width: 100%;
    opacity: 0.9;
}

.preview-content {
    height: 70%;
    width: 100%;
    opacity: 0.7;
}

.theme-preview-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-preview-default .preview-header {
    background: rgba(255, 255, 255, 0.1);
}

.theme-preview-default .preview-content {
    background: rgba(255, 255, 255, 0.95);
}

.theme-preview-sunset {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b9d 100%);
}

.theme-preview-sunset .preview-header {
    background: rgba(255, 255, 255, 0.1);
}

.theme-preview-sunset .preview-content {
    background: rgba(255, 255, 255, 0.95);
}

.theme-preview-forest {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.theme-preview-forest .preview-header {
    background: rgba(255, 255, 255, 0.1);
}

.theme-preview-forest .preview-content {
    background: rgba(255, 255, 255, 0.95);
}

.theme-preview-neon {
    background: linear-gradient(135deg, #00d4ff 0%, #9b59b6 100%);
}

.theme-preview-neon .preview-header {
    background: rgba(255, 255, 255, 0.1);
}

.theme-preview-neon .preview-content {
    background: rgba(255, 255, 255, 0.95);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.theme-preview-dark .preview-header {
    background: rgba(0, 0, 0, 0.3);
}

.theme-preview-dark .preview-content {
    background: rgba(45, 55, 70, 0.95);
}

.theme-preview-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.theme-preview-light .preview-header {
    background: rgba(0, 0, 0, 0.05);
}

.theme-preview-light .preview-content {
    background: rgba(255, 255, 255, 0.98);
}

.theme-option h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.theme-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Dark theme modal content improvements */
[data-theme="dark"] .modal-content {
    background: #34495e;
    color: #ffffff;
}

[data-theme="dark"] .modal-header h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body p {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .theme-option {
    background: rgba(52, 73, 94, 0.5);
    border: 2px solid #4a5a6a;
}

[data-theme="dark"] .theme-option h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .theme-option p {
    color: #e8e8e8 !important;
}

[data-theme="dark"] .theme-option:hover {
    background: rgba(52, 73, 94, 0.8);
    border-color: #3498db;
}

[data-theme="dark"] .theme-option.active {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* Fix dark mode theme option text visibility */
.theme-option[data-theme="dark"] h4 {
    color: #2c3e50 !important;
}

.theme-option[data-theme="dark"] p {
    color: #495057 !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 0;
}

.text-red {
    color: #e74c3c;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.separator {
    color: #7f8c8d;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .qr-customization {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .url-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header, .modal-body {
        padding: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .cookie-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    /* PDF mobile fixes */
    .pdf-upload-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .url-result {
        flex-direction: column;
        gap: 0.5rem;
    }

    .short-url {
        margin-bottom: 0.5rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .result-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer responsive styles */
    .footer-content {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-stats {
        flex-direction: row;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }
}