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

:root {
    /* Dark Theme Colors */
    --primary-dark: #00ff88;
    --primary-dark-dark: #00cc6a;
    --secondary-dark: #ff6b35;
    --accent-dark: #6366f1;
    --background-dark: #0a0a0a;
    --surface-dark: #111111;
    --surface-light-dark: #1a1a1a;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #a0a0a0;
    --text-muted-dark: #666666;
    --border-dark: #333333;
    --success-dark: #10b981;
    --warning-dark: #f59e0b;
    --error-dark: #ef4444;
    
    /* Light Theme Colors */
    --primary-light: #2563eb;
    --primary-light-dark: #1d4ed8;
    --secondary-light: #dc2626;
    --accent-light: #7c3aed;
    --background-light: #ffffff;
    --surface-light: #f8fafc;
    --surface-light-light: #ffffff;
    --text-primary-light: #1e293b;
    --text-secondary-light: #64748b;
    --text-muted-light: #94a3b8;
    --border-light: #e2e8f0;
    --success-light: #059669;
    --warning-light: #d97706;
    --error-light: #dc2626;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glow-dark: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-light: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: var(--primary-dark);
    --primary-dark: var(--primary-dark-dark);
    --secondary: var(--secondary-dark);
    --accent: var(--accent-dark);
    --background: var(--background-dark);
    --surface: var(--surface-dark);
    --surface-light: var(--surface-light-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border: var(--border-dark);
    --success: var(--success-dark);
    --warning: var(--warning-dark);
    --error: var(--error-dark);
    --glow: var(--glow-dark);
}

/* Light Theme */
[data-theme="light"] {
    --primary: var(--primary-light);
    --primary-dark: var(--primary-light-dark);
    --secondary: var(--secondary-light);
    --accent: var(--accent-light);
    --background: var(--background-light);
    --surface: var(--surface-light);
    --surface-light: var(--surface-light-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-muted: var(--text-muted-light);
    --border: var(--border-light);
    --success: var(--success-light);
    --warning: var(--warning-light);
    --error: var(--error-light);
    --glow: var(--glow-light);
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Button text visibility */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
    position: absolute;
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--background);
    box-shadow: var(--glow);
}

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

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--surface-light), var(--surface));
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-xl);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Deals Section */
.deals {
    padding: var(--space-lg) 0;
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.deal-item {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-md);
    gap: var(--space-md);
}

.deal-link {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.deal-link:hover {
    text-decoration: none;
    color: inherit;
}

.deal-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
    left: 172px;
    position: absolute;
    bottom: 16px;
}

.deal-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.deal-item.active {
    border-color: var(--success);
}

.deal-item.expiring {
    border-color: var(--warning);
}

.deal-item.expired {
    border-color: var(--error);
    opacity: 0.7;
}

.deal-item.trending {
    border-color: #ff6b35;
    animation: trendingBorder 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.deal-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--surface), var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

[data-theme="light"] .deal-image {
    background: linear-gradient(135deg, var(--surface), #f1f5f9);
    border: 1px solid var(--border);
}

.phone-svg {
    width: 70px;
    height: 105px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

[data-theme="light"] .phone-svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.deal-item:hover .phone-svg {
    transform: scale(1.05);
}

.deal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.deal-status-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.deal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.deal-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.deal-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

[data-theme="light"] .deal-status.active {
    background: rgba(5, 150, 105, 0.1);
}

.deal-status.expiring {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
    animation: pulse 2s infinite;
}

[data-theme="light"] .deal-status.expiring {
    background: rgba(217, 119, 6, 0.1);
}

.deal-status.expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

[data-theme="light"] .deal-status.expired {
    background: rgba(220, 38, 38, 0.1);
}

.deal-trending {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    border: 1px solid #ff6b35;
    animation: trendingPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.deal-trending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: trendingShine 3s ease-in-out infinite;
}

[data-theme="light"] .deal-trending {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.2);
}

.deal-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
}

.deal-price {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.deal-original {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    align-self: flex-start;
    margin-top: var(--space-xs);
}

.deal-page .deal-btn {
  font-size: 1.2rem;
  margin-top: 0;
}

.deal-timestamp {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-md);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.deal-item:hover .deal-timestamp {
    opacity: 1;
}

/* Deal Page */
.deal-page {
    padding: var(--space-xl) 0;
}

.deal-page .deal-detail {
    max-width: 1024px;
    margin: 0 auto;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    padding-top: 30px;
}

.deal-page-deal-header {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.deal-page .deal-pills-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.deal-page .deal-title-row {
    margin-bottom: var(--space-md);
    padding-top: 10px;
}

.deal-page .deal-subtitle-row {
    margin-bottom: var(--space-lg);
    padding-top: 10px;
}

.deal-page .deal-mobile-btn {
    display: none;
    text-align: center;
    margin-top: var(--space-md);
}

.deal-page .back-to-deals-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    font-size: 1.2rem;
}

.deal-page .back-to-deals-btn:hover {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.deal-page .deal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.deal-page .deal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.deal-page .deal-status-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.deal-page .deal-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.deal-page .deal-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

[data-theme="light"] .deal-page .deal-status.active {
    background: rgba(5, 150, 105, 0.1);
}

.deal-page .deal-status.expiring {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

[data-theme="light"] .deal-page .deal-status.expiring {
    background: rgba(217, 119, 6, 0.1);
}

.deal-page .deal-status.expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

[data-theme="light"] .deal-page .deal-status.expired {
    background: rgba(220, 38, 38, 0.1);
}

.deal-page .deal-image-container {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.deal-page-deal-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.deal-page .deal-actions-top {
    text-align: center;
    margin: var(--space-xl) 0;
}

.deal-page .deal-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-xl) 0;
}

.deal-page .deal-actions-bottom .btn {
  padding: var(--space-sm) var(--space-lg);
}

.deal-page .deal-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin: var(--space-xl) 0;
}

.deal-page .deal-content h1,
.deal-page .deal-content h2,
.deal-page .deal-content h3,
.deal-page .deal-content h4,
.deal-page .deal-content h5,
.deal-page .deal-content h6 {
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.deal-page .deal-content p {
    margin-bottom: var(--space-md);
}

.deal-page .deal-content ul,
.deal-page .deal-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.deal-page .deal-content li {
    margin-bottom: var(--space-sm);
}

.deal-page .deal-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--space-md) 0;
}

.deal-page .deal-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.deal-page .deal-content code {
    background: var(--surface);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.deal-page .deal-content pre {
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-md) 0;
}

.deal-page .deal-content pre code {
    background: none;
    padding: 0;
}

/* Paging Control */
.paging-control {
    display: flex;
    justify-content: center;
    margin: var(--space-2xl) 0;
    padding: var(--space-lg) 0;
}

.paging-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: var(--shadow-md);
}

.paging-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.paging-btn:hover:not(.disabled), .paging-number:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.paging-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-muted);
}

.paging-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--background);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--glow);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

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

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--surface);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.modal-form .input-group {
    display: flex;
    gap: var(--space-sm);
}

.modal-form .email-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.modal-form .email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

[data-theme="light"] .modal-form .email-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-form .email-input::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    font-size: 0.875rem;
}

.footer-signup {
    text-align: center;
    max-width: 300px;
}

.footer-signup h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.footer-signup p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.footer-signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-email-input {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.footer-email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

[data-theme="light"] .footer-email-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.footer-email-input::placeholder {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-end;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    height: 30px;
}

.footer-link:hover {
    color: var(--primary);
}

/* Footer Regions */
.footer-regions {
    margin-top: var(--space-md);
}

.footer-regions-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.footer-regions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-region-item {
    margin: 0;
}

.footer-region-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-region-link:hover {
    color: var(--primary);
    background: var(--surface-hover);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes trendingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
}

@keyframes trendingShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes trendingBorder {
    0%, 100% {
        border-color: #ff6b35;
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
    }
    50% {
        border-color: #f7931e;
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.4);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .header-actions {
        gap: var(--space-sm);
    }
    
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: inline;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-banner {
        padding: var(--space-xl) 0;
        margin-bottom: var(--space-lg);
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .deals {
        padding: var(--space-md) 0;
    }
    
    .deal-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .deal-link {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .deal-actions {
        align-items: center;
        width: 100%;
        position: unset;
        left: unset;
        bottom: unset;
    }
    
    .deal-image {
        width: 300px;
        height: 300px;
    }
    
    .phone-svg {
        width: 35px;
        height: 52px;
    }
    
    .deal-header {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
        text-align: center;
    }
    
    .deal-status-container {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .deal-title {
        flex: none;
    }
    
    .deal-status {
        align-self: center;
    }
    
    .deal-content {
        width: 100%;
    }
    
    .deal-meta {
        justify-content: center;
    }
    
    .deal-btn {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
    
    .deal-page .deal-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .deal-page .deal-status-container {
        align-self: flex-start;
    }
    
    .deal-page .deal-subtitle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .deal-page .deal-subtitle-row .deal-btn {
        align-self: center;
        width: 100%;
        max-width: 200px;
    }
    
    .deal-page .deal-actions-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .deal-page .deal-btn {
        font-size: 1.2rem;
    }
    
    .deal-page .back-to-deals-btn {
        font-size: 1.2rem;
        width: 100%;
        max-width: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
        width: 100%;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-signup {
        max-width: none;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .modal-content {
        margin: var(--space-md);
        padding: var(--space-xl);
    }
    
    .modal-form .input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .deal-item {
        padding: var(--space-sm);
    }
    
    .deal-title {
        font-size: 1rem;
    }
    
    .deal-description {
        font-size: 0.75rem;
    }
    
    .deal-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .deal-price {
        font-size: 1.125rem;
    }
    
    .deal-original {
        font-size: 0.8rem;
    }
    
    .deal-timestamp {
        font-size: 0.7rem;
    }
    
    .deal-page .deal-title {
        font-size: 1.75rem;
    }
    
    .deal-page .deal-title-row {
        padding-top: 0;
    }
    
    .deal-page .deal-subtitle-row {
        padding-top: 0;
    }
    
    .deal-page .deal-subtitle {
        font-size: 1rem;
        padding-bottom: 18px;
    }
    
    .deal-page .deal-pills-row .deal-btn {
        display: none;
    }
    
    .deal-page .deal-mobile-btn {
        display: block;
    }
    
    .deal-page .deal-detail {
        padding: var(--space-lg);
    }
    
    .footer-signup-form {
        max-width: 250px;
        margin: 0 auto;
    }

    .deal-actions .deal-btn {
      max-width: 140px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
