body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 48px 36px;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto 40px auto;
    padding-left: 0;
    list-style: none;
    max-width: 600px;
}

ul li {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: #333;
    padding-left: 25px;
    position: relative;
}

ul li:before {
    content: "•";
    color: #ff6b35;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cta-btn {
    font-size: 1.2rem;
    background: #ff6b35;
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cta-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* Footer Styles */
.site-footer {
    margin-top: 80px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 40px 0;
}

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

.footer-section p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.powered-by {
    font-size: 0.9rem;
    color: #999 !important;
}

.conectia-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.conectia-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #ff6b35;
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    background: #ff6b35;
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.13);
    transition: background 0.2s;
    font-weight: 600;
}

.submit-btn:hover, .submit-btn:focus {
    background: #217dbb;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #ff6b35;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.demo-info {
    background: #e8f4f8;
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.demo-info strong {
    color: #ff6b35;
}

/* Navigation Styles */
nav {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

nav .logo div {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav .nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav .nav-links a:hover {
    color: #ff6b35;
}

/* Logout Icon Styling */
.logout-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.logout-icon:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.logout-icon svg {
    transition: transform 0.2s ease;
}

.logout-icon:hover svg {
    transform: translateX(1px);
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 40px;
    text-align: left;
}

.user-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.info-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.info-section h3 {
    margin: 0 0 15px 0;
    color: #ff6b35;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.user-info p {
    margin: 8px 0;
    color: #555;
}

.user-info code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.admin-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.logout-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

.offers-section {
    margin: 40px 0;
}

.offers-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: left;
}

.no-offers {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ===== OFFER MANAGEMENT STYLES ===== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.page-title {
    text-align: left;
    flex: 1;
}

.page-title h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: left;
}

.page-title p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1rem;
    text-align: left;
}

.page-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #f1f3f4;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card:nth-child(1) {
    border-top: 4px solid #28a745;
}

.stat-card:nth-child(2) {
    border-top: 4px solid #6c757d;
}

.stat-card:nth-child(3) {
    border-top: 4px solid #007bff;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card:nth-child(1) .stat-number {
    color: #28a745;
}

.stat-card:nth-child(2) .stat-number {
    color: #6c757d;
}

.stat-card:nth-child(3) .stat-number {
    color: #007bff;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Sections */
.offers-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.section-header p {
    color: #6c757d;
    margin: 0;
}

.inactive-section .section-header h2 {
    color: #6c757d;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: none;
}

/* Offer Cards */
.offer-card {
    background: white;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offer-card.active {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.offer-card.inactive {
    opacity: 0.7;
    background: #f8f9fa;
}

/* Offer Status */
.offer-status {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.order-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-number {
    background: #ff6b35;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Offer Image */
.offer-image {
    width: calc(100% - 3rem);
    height: 0;
    padding-bottom: calc(100% - 3rem);
    overflow: hidden;
    margin: 1rem 1.5rem 0;
    position: relative;
}

.offer-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Safari fixes */
    min-width: 100%;
    min-height: 100%;
    flex-shrink: 0;
    display: block;
}

/* Offer Content */
.offer-content {
    padding: 1rem 1.5rem;
    text-align: left;
    flex: 1;
}

.offer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.offer-description {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Offer Actions */
.offer-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f8f9fa;
    background: #fafbfc;
    margin-top: auto;
}

/* Order Control */
.order-control {
    margin-bottom: 1rem;
}

.order-control label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-input {
    width: 80px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.order-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.25);
}

.order-help {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2e;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* No Active Offers */
.no-active-offers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-active-offers p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.offer-terms {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.offer-terms h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.95rem;
}

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

.offer-meta {
    color: #999;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.no-offers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-offers h3 {
    color: #333;
    margin-bottom: 10px;
}
 
/* Admin Interface Styles */
.admin-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}

.admin-section h2 {
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.admin-form {
    max-width: 100%;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="url"]:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.admin-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.admin-offers-list {
    display: grid;
    gap: 20px;
}

.admin-offer-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

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

.admin-offer-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.admin-offer-header small {
    color: #666;
    font-size: 0.85rem;
}

.admin-offer-image {
    margin: 15px 0;
}

.admin-offer-image img {
    max-width: 200px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    /* Safari fixes */
    min-width: 200px;
    min-height: 100px;
    flex-shrink: 0;
    display: block;
}

.admin-offer-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.admin-offer-link a {
    color: #ff6b35;
    text-decoration: none;
    word-break: break-all;
}

.admin-offer-link a:hover {
    text-decoration: underline;
}

/* Dashboard Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Section Headers with Actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
    color: #1a1a1a;
}

.manage-offers-btn {
    background: #ff6b35;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.manage-offers-btn:hover {
    background: #e55a2e;
    transform: translateY(-1px);
}

/* Order Information Section */
.order-info {
    background: #f0f8ff;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.order-info h3 {
    margin: 0 0 15px 0;
    color: #1565c0;
    font-size: 1.1rem;
}

.order-info p {
    margin: 8px 0;
    color: #424242;
    font-size: 0.95rem;
}

/* Integration Guide Styles */
.integration-header {
    margin-bottom: 40px;
    text-align: left;
}

.integration-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.integration-header p {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0;
}

/* Code Section Styles */
.code-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.code-section h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.code-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.code-section pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    white-space: pre;
}

.code-section code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    white-space: pre;
}

.code-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.code-section li {
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.code-section .highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Settings Form Styles */
.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.settings-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f5633a 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.settings-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.settings-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.settings-content {
    padding: 2rem;
}

.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
}

.settings-form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.color-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker:hover {
    border-color: #ff6b35;
}

.hex-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hex-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.preview-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.preview-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.button-preview {
    display: flex;
    justify-content: center;
}

.preview-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid;
    cursor: default;
    transition: all 0.2s ease;
}

.form-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.page-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.page-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .settings-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .settings-header {
        padding: 1.5rem;
    }
    
    .settings-content {
        padding: 1.5rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offer-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .offer-header h3 {
        margin-right: 0;
        min-width: auto;
    }
    
    .offer-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .order-control {
        order: 1;
    }
    
    .offer-toggle {
        order: 2;
    }
    
    .toggle-btn {
        min-width: 90px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .page-title {
        text-align: center;
    }
    
    .page-actions {
        justify-content: center;
    }
    
    .page-stats {
        width: 100%;
        justify-content: center;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .order-input-group {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .order-input {
        width: 60px;
    }
    
    .stat-card {
        padding: 0.75rem 1rem;
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Dashboard Responsive Styles */
@media (max-width: 768px) {
    .offers-section .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .api-section {
        padding: 1.5rem;
    }
    
    .api-code {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .dashboard-header + .offers-section .offer-content,
    .offers-section .offer-content {
        padding: 1rem;
    }
}

/* Responsive styles for integration page */
@media (max-width: 768px) {
    .code-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .code-section pre {
        padding: 1rem;
        font-size: 0.8rem;
        overflow-x: scroll;
    }
    
    .integration-header h1 {
        font-size: 2rem;
    }
    
    .integration-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 750px) {
    .container {
        padding: 26px 8vw;
        margin: 30px 16px 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .user-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .color-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .color-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .color-input-wrapper input[type="color"] {
        width: 100%;
        height: 50px;
    }
    
    nav {
        padding: 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    nav .logo {
        font-size: 1.1rem !important;
    }
    
    nav .logo div {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
    
    nav .nav-links {
        gap: 12px !important;
        font-size: 0.9rem !important;
    }
    
    nav .nav-links a {
        padding: 4px 8px !important;
        border-radius: 4px !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 8px !important;
    }
    
    nav .logo {
        font-size: 1rem !important;
    }
    
    nav .nav-links {
        gap: 8px !important;
        font-size: 0.85rem !important;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    padding-top: 0.5rem;
}

.admin-dashboard-header {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 0;
}

.admin-dashboard-header h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.admin-nav-item {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.admin-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.company-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.company-header h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.company-details p {
    margin: 0.4rem 0;
    font-size: 0.85rem;
}

.company-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.company-card.no-users {
    opacity: 0.7;
    border-color: #dee2e6;
    background: #f8f9fa;
}

.company-card.pending-company {
    border-color: #ffc107;
    background: #fff3cd;
    border-width: 2px;
}

.no-users-badge {
    background: #ffc107;
    color: #212529;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.pending-company-badge {
    background: #fd7e14;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.no-users-text {
    color: #6c757d;
    font-style: italic;
}

.pending-users-text {
    color: #fd7e14;
    font-weight: 500;
}

.no-affiliate-text {
    color: #dc3545;
    font-style: italic;
    font-size: 0.8rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.offer-checkbox-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.offer-checkbox-item.active {
    border-color: #ff6b35;
    background: #fff5f0;
}

.offer-checkbox-item label {
    display: block;
    padding: 1rem;
    cursor: pointer;
}

.offer-checkbox-item input[type="checkbox"] {
    margin-bottom: 0.5rem;
}

.offer-preview img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.offer-preview h4 {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.offer-preview p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.offer-content {
    display: flex;
    gap: 1rem;
}

.offer-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    /* Safari fixes */
    min-width: 80px;
    min-height: 80px;
    flex-shrink: 0;
    display: block;
}

.offer-details {
    flex: 1;
}

.offer-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: #ff6b35;
}

.admin-form .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-danger:hover {
    background: #c82333;
}

.edit-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.offer-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.availability-form {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.availability-form h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6b35;
}

.companies-availability {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.company-availability-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-availability-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.company-availability-item.checked {
    border-color: #28a745;
    background: #f8fff9;
}

.company-availability-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.company-availability-item input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    accent-color: #ff6b35;
}

.company-availability-item .company-name {
    flex-grow: 1;
    color: #2c3e50;
}

.company-availability-item .status-indicator {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.status-indicator.enabled {
    background: #d4edda;
    color: #155724;
}

.status-indicator.disabled {
    background: #f8d7da;
    color: #721c24;
}

.availability-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.availability-actions .btn-save {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.availability-actions .btn-save:hover {
    background: #218838;
    transform: translateY(-1px);
}

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

.availability-form .btn-secondary {
    display: block;
    margin: 1.5rem auto 0 auto;
    padding: 0.75rem 2rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 1rem;
}

select:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.info-text {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.user-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.user-meta p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

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

.password-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.password-form h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.pending-badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.no-pending {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.no-pending p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pending-users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-user-item {
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pending-user-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pending-user-details {
    flex: 1;
}

.pending-user-details h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.pending-user-meta p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pending-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-approve {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

.btn-reject {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

.approve-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-right: 0.5rem;
}

.affiliate-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.affiliate-input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.affiliate-input-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
}

.affiliate-input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.pending-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .pending-user-actions {
        flex-direction: row;
        align-items: flex-end;
    }
}

.company-selection-group {
    margin-bottom: 1rem;
}

.company-selection-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0 !important;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.company-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.company-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.company-select:enabled {
    background: white;
    color: #333;
    cursor: pointer;
}

.company-select:enabled:hover {
    border-color: #007bff;
}

.company-select:enabled:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.color-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker:hover {
    border-color: #ff6b35;
}

.hex-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hex-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Homepage Hero Section Styles */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.hero-content h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.value-card p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.cta-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

.cta-btn.secondary {
    background: transparent;
    color: #ff6b35;
    border-color: #ff6b35;
}

.cta-btn.secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.hero-section .conectia-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.hero-section .conectia-link:hover {
    text-decoration: underline;
}

/* Auth Form Styles */
.auth-form-container {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.auth-form-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.auth-form-container .subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form input[type="text"], 
.auth-form input[type="email"], 
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.auth-form input[type="text"]:focus, 
.auth-form input[type="email"]:focus, 
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-form .submit-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.auth-form .submit-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.auth-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-form .message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-form .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-form .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Integration Page Styles */
.integration-tabs {
    display: flex;
    gap: 8px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    color: #6c757d;
}

.tab-button:hover {
    background: #f8f9fa;
    color: #495057;
}

.tab-button.active {
    background: #ff6b35;
    color: white;
    transform: translateY(2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.integration-page .code-section {
    margin-bottom: 40px;
}

.shopify-intro {
    background: linear-gradient(135deg, #95bf47 0%, #659b1b 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.shopify-intro h3 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 15px;
}

.shopify-benefits {
    margin-top: 25px;
}

.shopify-benefits h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.shopify-benefits ul {
    list-style: none;
    padding: 0;
}

.shopify-benefits li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.shopify-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #95bf47;
    font-weight: bold;
    background: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.best-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.practice-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #95bf47;
}

.practice-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.practice-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.shopify-note {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.shopify-note p {
    margin: 0;
    color: #1565c0;
}

/* iframe Styles */
.iframe-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.iframe-container body {
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: transparent;
}

.iframe-container .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    font-size: 14px;
}

.iframe-container .loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Styles for Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .value-card {
        padding: 1.2rem;
    }
    
    .cta-section {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-height: 600px) {
    .hero-section {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .value-grid {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .value-card {
        padding: 1rem;
    }
    
    .cta-section {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-top: 0.3rem;
        font-size: 0.85rem;
    }
}

.hero-section + .site-footer {
    margin-top: 0;
}

/* Auth Form Mobile Responsiveness */
@media (max-width: 480px) {
    .auth-form-container {
        max-width: 100%;
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .auth-form-container h1 {
        font-size: 1.75rem;
    }
}

/* Homepage Container Override */
.hero-section .container {
    padding: 0;
    margin: 0;
    max-width: none;
    text-align: left;
}

/* Mobile Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 20px;
    }
    
    .site-footer {
        padding: 30px 0;
    }
    
    nav {
        padding: 15px 20px !important;
    }
    
    .container {
        padding: 30px 20px !important;
        margin-top: 20px !important;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Dashboard Offer Cards - Different from Management Page */
.dashboard-header + .offers-section .offer-card,
.offers-section .offer-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-header + .offers-section .offer-card:hover,
.offers-section .offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Dashboard Offer Image */
.dashboard-header + .offers-section .offer-image,
.offers-section .offer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin: 0;
}

/* Dashboard Offer Content */
.dashboard-header + .offers-section .offer-content,
.offers-section .offer-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-header + .offers-section .offer-content h3,
.offers-section .offer-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.dashboard-header + .offers-section .offer-description,
.offers-section .offer-description {
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    flex: 1;
}

.dashboard-header + .offers-section .offer-terms,
.offers-section .offer-terms {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid #ff6b35;
}

.dashboard-header + .offers-section .offer-terms strong,
.offers-section .offer-terms strong {
    color: #ff6b35;
    font-size: 0.85rem;
       text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Offer Button */
.dashboard-header + .offers-section .offer-btn,
.offers-section .offer-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.dashboard-header + .offers-section .offer-btn:hover,
.offers-section .offer-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Section Header for Dashboard */
.offers-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.offers-section .section-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.manage-offers-btn {
    background: #ff6b35;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* No Offers State for Dashboard */
.offers-section .no-offers {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.offers-section .no-offers p {
    color: #6c757d;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.offers-section .no-offers a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.offers-section .no-offers a:hover {
    text-decoration: underline;
}

/* API Section Styles */
.api-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.api-section h2 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.api-section p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.api-code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 1rem 0;
}

.api-code pre {
    margin: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Stats Grid on Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-grid .stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff6b35;
}

.stats-grid .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stats-grid .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Info Card */
.company-info-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.company-info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #ddd;
}

.company-details h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.company-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.affiliate-info, .button-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-meta .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.affiliate-id {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sample-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .company-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .company-info-card {
        padding: 1.5rem;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .offer-image {
        flex-shrink: 0;
    }
    
    .offer-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    
    /* Offers page specific fixes */
    .offers-grid .offer-image {
        height: 150px !important;
        width: 100% !important;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .offers-grid .offer-image img {
        width: 100% !important;
        height: 150px !important;
        min-height: 150px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    
    /* Admin page specific fixes */
    .offers-list .offer-image {
        flex-shrink: 0;
        width: 80px;
        height: 80px;
    }
    
    .offers-list .offer-image img {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    
    .admin-offer-image {
        flex-shrink: 0;
        width: 200px;
        height: 100px;
    }
    
    .admin-offer-image img {
        width: 200px !important;
        height: 100px !important;
        min-width: 200px !important;
        min-height: 100px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    
    .offer-content {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .offer-details {
        flex: 1;
        min-width: 0; /* Prevents flex item from overflowing */
    }
    
    /* Dashboard offer images */
    .dashboard-header + .offers-section .offer-image,
    .offers-section .offer-image {
        width: 100% !important;
        height: 200px !important;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .dashboard-header + .offers-section .offer-image img,
    .offers-section .offer-image img {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
}

/* Copy Link Container */
.copy-link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    padding: 0.25rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.copy-input {
    flex: 1;
    min-width: 300px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: white;
    color: #495057;
}

.copy-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.25);
}

.copy-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
}

.copy-btn.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Page actions responsive layout */
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .copy-link-container {
        margin-right: 0;
        width: 100%;
        order: 2;
    }
    
    .copy-input {
        min-width: 200px;
        font-size: 0.8rem;
    }
    
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Offer Link Section Styles */
.offer-link-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.link-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.offer-link-section .copy-link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.offer-link-input {
    flex: 1;
    min-width: 0; /* Override the 300px min-width */
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-link-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.25);
}

.offer-link-section .copy-btn {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-width: 70px;
    white-space: nowrap;
}

.offer-link-section .copy-btn.copied {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Safari specific fixes for offer links */
@supports (-webkit-appearance: none) {
    .offer-link-input {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
    
    .offer-link-section .copy-btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
}

/* Responsive adjustments for offer links */
@media (max-width: 768px) {
    .offer-link-section {
        padding: 0.5rem;
    }
    
    .offer-link-input {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .offer-link-section .copy-btn {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        min-width: 60px;
    }
}

/* Swiper Pagination Styles */
#offers-carousel {
    padding: 20px;
    box-sizing: border-box;
}

.carousel-wrapper {
    width: 100%;
}

.swiper-pagination {
    position: static !important;
    margin-top: 1rem;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d4dce6;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #d4dce6 !important; /* Default to gray to prevent blue flash */
    transform: scale(1.2);
}

