:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px 15px;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 480px;
    position: relative;
    padding-bottom: 30px;
}

/* Header & Logo */
.header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

.app-name {
    font-size: 26px;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-text {
    font-size: 14px;
    color: var(--text-color);
    background: rgba(255,255,255,0.6);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

/* Invite Section */
.invite-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid rgba(255,255,255,0.8);
}

.invite-label {
    font-size: 14px;
    color: var(--text-light);
}

.invite-code {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    flex-grow: 1;
    text-align: center;
    margin: 0 10px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.copy-btn:active {
    background: rgba(52, 152, 219, 0.1);
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.action-card:active {
    transform: scale(0.98);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.text-content {
    display: flex;
    flex-direction: column;
}

.main-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.sub-text {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Card Variants */
.action-card.android {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.action-card.ios {
    background: linear-gradient(135deg, #304352 0%, #d7d2cc 100%);
    color: #333;
}
.action-card.ios .main-text, .action-card.ios .sub-text {
    color: #fff; /* Override for better contrast on dark part of gradient, or adjust gradient */
}
/* Adjusting iOS card for better visibility */
.action-card.ios {
    background: linear-gradient(135deg, #2b32b2 0%, #1488cc 100%);
    color: white;
}

.action-card.vip {
    background: linear-gradient(135deg, #f09819 0%, #edde5d 100%);
    grid-column: 1 / -1; /* Full width */
}

.action-card.order {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    grid-column: 1 / -1; /* Full width */
}

/* Tutorial Section */
.tutorial-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-top: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

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

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e4e8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
    padding-bottom: 20px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

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

.modal-content {
    background: white;
    width: 85%;
    max-width: 320px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

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

.modal-header {
    background: var(--primary-color);
    padding: 15px;
    text-align: center;
    color: white;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.highlight-text {
    color: var(--accent-color) !important;
    font-weight: bold;
    font-size: 16px !important;
}

.modal-footer {
    padding: 0 20px 20px;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-btn:active {
    background: var(--secondary-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1100;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
