/* Event Tickets Plugin Styles - iPad Optimized */

/* Complete CSS Reset for Standalone Pages */
.event-tickets-standalone *,
.event-tickets-standalone *:before,
.event-tickets-standalone *:after {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

.event-tickets-standalone {
    line-height: 1;
    color: #333;
    background: #f8f9fa;
}

.event-tickets-standalone ol, 
.event-tickets-standalone ul {
    list-style: none;
}

.event-tickets-standalone blockquote, 
.event-tickets-standalone q {
    quotes: none;
}

.event-tickets-standalone blockquote:before, 
.event-tickets-standalone blockquote:after,
.event-tickets-standalone q:before, 
.event-tickets-standalone q:after {
    content: '';
    content: none;
}

.event-tickets-standalone table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Base Typography for Standalone Pages */
.event-tickets-standalone {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #f8f9fa;
}

.event-tickets-standalone h1,
.event-tickets-standalone h2,
.event-tickets-standalone h3,
.event-tickets-standalone h4,
.event-tickets-standalone h5,
.event-tickets-standalone h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.event-tickets-standalone h1 { font-size: 2.5em; }
.event-tickets-standalone h2 { font-size: 2em; }
.event-tickets-standalone h3 { font-size: 1.5em; }

.event-tickets-standalone p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.event-tickets-standalone a {
    color: #3498db;
    text-decoration: none;
}

.event-tickets-standalone a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.event-tickets-standalone input,
.event-tickets-standalone button,
.event-tickets-standalone select,
.event-tickets-standalone textarea {
    font-family: inherit;
    font-size: inherit;
}

.event-tickets-standalone button {
    cursor: pointer;
}

.event-tickets-standalone ul {
    margin: 0;
    padding: 0;
}

.event-tickets-standalone li {
    list-style: none;
}

/* Reset and Base Styles */
.event-tickets-container * {
    box-sizing: border-box;
}

.event-tickets-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    
    /* Ensure proper styling in standalone mode */
    color: #333;
    line-height: 1.5;
}

/* Standalone page specific container styling */
.event-tickets-standalone .event-tickets-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
}

/* PIN Entry Screen */
.pin-entry-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pin-entry-container h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

.pin-input-container {
    margin: 30px 0;
}

.pin-input-container label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.pin-input {
    width: 200px;
    height: 60px;
    font-size: 32px;
    text-align: center;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 8px;
    background: #fff;
}

.pin-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-cancel {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    min-width: 120px;
    margin: 5px;
}

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

.btn-primary:hover, .btn-primary:focus {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.btn-cancel {
    background: #e74c3c;
    color: white;
}

.btn-cancel:hover, .btn-cancel:focus {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Staff Main Screen */
.staff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.staff-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
}

/* Ticket Options Grid */
.ticket-options-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.ticket-options-container h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.ticket-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ticket-option {
    background: linear-gradient(135deg, #0f0f0f 0%, #303030 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ticket-option:hover, .ticket-option:focus {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ticket-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ticket-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ticket-price {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.ticket-count {
    font-size: 14px;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Recent Logs */
.recent-logs-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-logs-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
}

.logs-controls {
    margin-bottom: 20px;
    text-align: right;
}

.logs-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.logs-table th,
.logs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.logs-table td {
    color: #34495e;
    font-size: 14px;
}

.logs-table tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Status Indicators */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

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

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

.countdown {
    font-size: 12px;
    color: #f39c12;
    font-weight: 600;
    margin-top: 5px;
}

/* Customer Form */
.customer-form-screen {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
}

.back-link {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #495057;
    background-color: #f8f9fa;
    text-decoration: underline;
}

.selected-ticket-info h2 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 24px;
}

.ticket-price {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.customer-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-note {
    background: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.form-note p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-spinner p {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Confirmation Page */
.confirmation-screen {
    max-width: 700px;
    margin: 0 auto;
}

.confirmation-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    width: 80px;
    height: 80px;
    background: #27ae60;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.confirmation-content h1 {
    color: #27ae60;
    margin-bottom: 30px;
    font-size: 32px;
}

.purchase-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.purchase-summary h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 600;
    color: #34495e;
}

.summary-item .value {
    color: #2c3e50;
}

.processing-info {
    margin: 30px 0;
    text-align: left;
}

.processing-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.important-note h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 18px;
}

.important-note ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.important-note li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

/* =============================================================================
   ENHANCED UI IMPROVEMENTS
   ============================================================================= */

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.company-logo {
    max-height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

/* Enhanced Customer Form */
.form-header {
    background: linear-gradient(135deg, #0f0f0f 0%, #303030 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.header-content h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
}

.back-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white !important;
}

.selected-package {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.package-info h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.package-name {
    font-weight: 700;
    font-size: 18px;
}

.package-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.package-entries {
    background: rgba(46, 204, 113, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Enhanced Processing Overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.processing-content {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.processing-animation {
    margin-bottom: 30px;
    position: relative;
    height: 100px;
}

.spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.processing-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.processing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
    margin: 0 4px;
    animation: bounce 1.4s ease-in-out infinite both;
}

.processing-dots span:nth-child(1) { animation-delay: -0.32s; }
.processing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1);
    }
}

.processing-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.processing-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Processing Steps */
.processing-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.processing-steps .step {
    flex: 1;
    min-width: 120px;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.processing-steps .step.active {
    opacity: 1;
    transform: scale(1.05);
}

.processing-steps .step.completed {
    opacity: 1;
    color: #27ae60;
}

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    background: #ecf0f1;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.5s ease;
}

.step.active .step-number {
    background: #3498db;
    color: white;
}

.step.completed .step-number {
    background: #27ae60;
    color: white;
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: block;
}

/* Enhanced Confirmation Page */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.confirmation-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.confirmation-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.success-animation {
    margin-bottom: 30px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 20px;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
    background: white;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: white;
    transform: rotate(-45deg);
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

.confirmation-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.confirmation-message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Order Summary Card */
.order-summary-card,
.next-steps-card,
.important-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f1f1;
}

.order-summary-card h2,
.next-steps-card h2,
.important-info-card h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.summary-grid {
    display: grid;
    gap: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 600;
    color: #7f8c8d;
    flex: 1;
}

.summary-item .value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

.transaction-id {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.package-highlight {
    color: #3498db !important;
    font-weight: 700 !important;
}

.price-highlight {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

.entries-highlight {
    color: #27ae60 !important;
    font-weight: 700 !important;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: #f39c12;
    color: white;
}

.status-badge.status-processed {
    background: #27ae60;
    color: white;
}

.status-badge.status-cancelled {
    background: #e74c3c;
    color: white;
}

/* Timeline Steps */
.steps-timeline {
    position: relative;
}

.timeline-step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: 30px;
    background: #ecf0f1;
}

.timeline-step.completed::after {
    background: #27ae60;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    background: #ecf0f1;
    color: #95a5a6;
    transition: all 0.3s ease;
}

.timeline-step.completed .step-icon {
    background: #27ae60;
    color: white;
}

.timeline-step.pending .step-icon {
    background: #f39c12;
    color: white;
}

.step-content h4 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
}

.step-content p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

/* Important Info Card */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    color: #2c3e50;
    position: relative;
    padding-left: 30px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Return Section */
.return-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #303030 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.countdown-display p {
    margin-bottom: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.countdown-number {
    font-weight: 700;
    font-size: 24px;
    color: #f1c40f;
}

.countdown-progress {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

.return-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.return-button:hover {
    background: white !important;
    color: #0f0f0f !important;
}

/* Process Now Button */
.btn-process {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    margin-left: 10px;
    font-size: 14px;
    padding: 8px 16px;
    min-width: 100px;
}

.btn-process:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
}

.btn-process:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-tickets-container {
        padding: 10px;
    }
    
    .ticket-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ticket-option {
        min-height: 150px;
        padding: 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .info-steps {
        gap: 15px;
    }
    
    .logs-table {
        font-size: 12px;
    }
    
    .logs-table th,
    .logs-table td {
        padding: 10px 8px;
    }
    
    .form-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-link {
        align-self: flex-end;
        font-size: 0.8rem;
    }
}

/* iPad Landscape Optimization */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .ticket-options-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ticket-option {
        min-height: 160px;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-cancel:hover,
    .ticket-option:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .btn-cancel:active {
        transform: scale(0.98);
    }
    
    .ticket-option:active {
        transform: scale(0.98);
    }
}

/* Print Styles */
@media print {
    .btn-primary,
    .btn-secondary,
    .btn-cancel,
    .loading-overlay {
        display: none !important;
    }
    
    .event-tickets-container {
        background: white;
        box-shadow: none;
    }
}