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

body {
    font-family: Georgia, serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
    padding-bottom: 80px;
}

.page {
    min-height: 100vh;
    animation: fadeIn 0.5s;
}

.page.active {
    display: block;
}

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

.header-bar {
    background: #000;
    color: #ffd700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.header-bar .header-message {
    flex: 1;
    text-align: center;
}

.login-button {
    background: #ffd700;
    color: #000;
    border: 2px solid #ffd700;
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
  text-align:center;
}

.login-button:hover {
    background: #000;
    color: #ffd700;
}

.hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    text-align: center;
}

.headline {
    font-size: 3em;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #000;
    font-weight: 700;
}

.subheadline {
    font-size: 1.5em;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.15em;
}

.story-section {
    background: #f9f9f9;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid #e74c3c;
}

.section-headline {
    font-size: 2em;
    margin: 40px 0 20px;
    color: #000;
}

.bullet-section {
    background: #f0f8f0;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.bullet-section h3 {
    color: #2c5234;
    margin-bottom: 20px;
}

.bullet-section ul {
    list-style: none;
    padding: 0;
}

.bullet-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.bullet-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

.cta-box {
    background: linear-gradient(135deg, #2c5234 0%, #4CAF50 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-headline {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
}

.price-display {
    margin: 20px 0;
}

.old-price {
    color: rgba(255,255,255,0.7);
    text-decoration: line-through;
    font-size: 1.5em;
    margin-right: 20px;
}

.new-price {
    color: #ffd700;
    font-size: 2.5em;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.guarantee {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
    margin-top: 20px;
}

.red-text {
    color: #e74c3c;
    font-weight: 700;
}

.arrow {
    text-align: center;
    font-size: 3em;
    color: #e74c3c;
    margin: 20px 0;
}

.checkout-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    color: #2c5234;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 30px auto;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: attr(data-step);
    display: block;
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 10px;
    line-height: 30px;
    color: #fff;
}

.progress-step.active::before {
    background: #4CAF50;
}

.progress-step.completed::before {
    background: #2c5234;
    content: "✓";
}

.progress-step-label {
    font-size: 0.9em;
    color: #666;
}

.order-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 10px;
    color: #2c5234;
}

.stripe-placeholder {
    background: #f6f9fc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.continue-button {
    width: 100%;
    padding: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #333;
}

.info-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.generator-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.input-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.distance-input {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.distance-input input {
    width: 280px;
    padding: 15px 20px;
    font-size: 1.5em;
    text-align: center;
    border: 3px solid #4CAF50;
    border-radius: 10px;
    -moz-appearance: textfield;
    transition: all 0.3s;
}

.distance-input input:focus {
    outline: none;
    border-color: #2c5234;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.distance-input input::placeholder {
    color: #999;
    opacity: 0.9;
}

.distance-input input::-webkit-outer-spin-button,
.distance-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.generate-button {
    padding: 15px 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.yardage-book {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.yardage-book.show {
    display: block;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yardage-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
}

.yardage-header h2 {
    color: #2c5234;
    font-size: 2em;
    margin-bottom: 10px;
}

.yardage-header p {
    color: #666;
    font-style: italic;
}

.yardage-list-container {
    margin: 30px auto;
}

.yardage-list-header {
    text-align: center;
    color: #2c5234;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.yardage-list {
    max-width: 500px;
    margin: 0 auto 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.club-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    position: relative;
}

.club-row-with-edit {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    gap: 15px;
}

.edit-button {
    background: #2c5234;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.edit-button:hover {
    background: #4CAF50;
    transform: scale(1.05);
}

.club-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.partial-distances {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #666;
}

.partial-distance {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partial-distance .label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.partial-distance .value {
    font-weight: 600;
    color: #333;
}

.club-row > div {
    flex: 1;
    text-align: center;
}

.club-row > div:first-child {
    text-align: left;
}

.club-row > div:last-child {
    text-align: right;
}

.club-row:last-child {
    border-bottom: none;
}

.club-row:hover {
    background: #f0f8f0;
}

.club-row.highlight {
    background: #e8f5e9;
    font-weight: 700;
}

.club-name {
    font-weight: 600;
    color: #2c5234;
    font-size: 1.1em;
}

.club-distance {
    font-size: 1.3em;
    color: #4CAF50;
    font-weight: 700;
}

.club-distance span {
    font-size: 0.8em;
    color: #666;
    font-weight: 400;
}

.demo-nav {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #333;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    border-top: 3px solid #ffd700;
}

.demo-nav h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-button {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background: #555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
    text-decoration: none;
}

.demo-button:hover {
    background: #777;
    transform: translateY(-2px);
}

.demo-button.active {
    background: #4CAF50;
    font-weight: bold;
}

.download-section {
    text-align: center;
    padding: 30px;
    background: #f0f8f0;
    border-radius: 10px;
    margin-top: 30px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}

.download-button {
    padding: 15px 20px;
    background: #2c5234;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-button .icon {
    font-size: 1.2em;
}

.download-button:hover {
    background: #1e3c26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    padding: 15px 20px;
    text-align: center;
    font-size: 10pt;
    color: #666;
    z-index: 500;
}

.site-footer a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    color: #2c5234;
    text-decoration: underline;
}

.dialog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.dialog-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 90%;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
}

.dialog-icon.success { color: #4CAF50; }
.dialog-icon.error { color: #e74c3c; }
.dialog-icon.warning { color: #f39c12; }
.dialog-icon.info { color: #3498db; }
.dialog-icon.confirm { color: #f39c12; }

.dialog-modal h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.dialog-modal h3.success { color: #2c5234; }
.dialog-modal h3.error { color: #c0392b; }
.dialog-modal h3.warning { color: #d68910; }
.dialog-modal h3.info { color: #2874a6; }
.dialog-modal h3.confirm { color: #d68910; }

.dialog-message {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dialog-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.dialog-button.primary {
    background: #4CAF50;
    color: white;
}

.dialog-button.primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.dialog-button.secondary {
    background: #ddd;
    color: #333;
}

.dialog-button.secondary:hover {
    background: #ccc;
}

.dialog-button.danger {
    background: #e74c3c;
    color: white;
}

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

.email-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;  /* ← ADD THIS */
    align-items: center;      /* ← ADD THIS */
}
.email-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
}

.email-modal h3 {
    color: #2c5234;
    margin-bottom: 20px;
    text-align: center;
}

.email-modal input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 20px;
}

.email-modal input:focus {
    outline: none;
    border-color: #4CAF50;
}

.email-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.email-modal button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.email-modal .send-btn {
    background: #4CAF50;
    color: white;
}

.email-modal .send-btn:hover {
    background: #45a049;
}

.email-modal .cancel-btn {
    background: #ddd;
    color: #333;
}

.email-modal .cancel-btn:hover {
    background: #ccc;
}

input[type=number].no-spinners::-webkit-inner-spin-button, 
input[type=number].no-spinners::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number].no-spinners {
    -moz-appearance: textfield;
    appearance: textfield;
}

.toast-notification {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.page-logout-link {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 999;
    transition: all 0.3s;
    display: none;
    border: 2px solid #ffd700;
}

.page-logout-link:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-logout-link.visible {
    display: inline-block;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    border-left: 4px solid #4CAF50;
}

.toast-notification.error {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

.toast-notification.info {
    border-left: 4px solid #3498db;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.toast-notification.error .toast-message {
    color: #c0392b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .headline {
        font-size: 2em;
    }
    
    .subheadline {
        font-size: 1.2em;
    }
    
    .content {
        font-size: 1.1em;
        padding: 40px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .toast-notification {
        bottom: 100px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}



.tooltip-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
}

.tooltip-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  max-width: 90vw;
  z-index: 10000;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}

/* Show on hover (desktop) or when active (mobile) */
.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger.tooltip-active .tooltip-content {
  display: block;
}

/* Optional: Add backdrop for mobile */
.tooltip-trigger.tooltip-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
}

/* Keep tooltip icon on same line as text */
th, .header-cell {
  white-space: nowrap;
}
