:root {
    --ios-bg: #000000;
    --ios-text: #ffffff;
    --ios-gray: #8e8e93;
    --ios-dark-gray: #1c1c1e;
    --ios-separator: #2c2c2e;
    --ios-green: #30d158;
    --ios-red: #ff453a;
    --ios-blue: #0a84ff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--ios-bg);
    color: var(--ios-text);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.ios-container {
    width: 100%;
    max-width: 440px;
    background-color: var(--ios-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 8px 16px 0 16px;
    position: relative;
    overflow: hidden;
}

.ios-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
    flex-shrink: 0;
}

#tickers-list {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#tickers-list::-webkit-scrollbar {
    display: none;
}

.header-top {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ios-gray);
    margin-bottom: 0;
}

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

.logo-container {
    display: flex;
    flex-direction: column;
}

.header-tagline {
    font-size: 0.8125rem;
    color: var(--ios-gray);
    font-weight: 500;
    letter-spacing: -0.1px;
    margin-top: -2px;
}

h1 {
    font-size: 2.125rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gem-gradient {
    background: linear-gradient(135deg, #4285f4 0%, #a142f4 50%, #f442bc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ios-refresh-btn {
    background: none;
    border: none;
    color: var(--ios-blue);
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
}

.ios-refresh-btn:active {
    opacity: 0.5;
}

.search-bar {
    background-color: var(--ios-dark-gray);
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ios-gray);
    font-size: 1rem;
    height: 36px;
}

#search-input {
    background: none;
    border: none;
    color: var(--ios-text);
    font-size: 1rem;
    font-family: var(--font-family);
    width: 100%;
    outline: none;
}

#search-input::placeholder {
    color: var(--ios-gray);
}

.search-results-container {
    position: absolute;
    top: 180px;
    left: 16px;
    right: 16px;
    background-color: var(--ios-dark-gray);
    border-radius: 12px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 0.5px solid var(--ios-separator);
}

.search-results-container.show {
    display: block;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--ios-separator);
    cursor: pointer;
}

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

.search-result-item:hover {
    background-color: var(--ios-separator);
}

.search-result-symbol {
    font-weight: 700;
    font-size: 1rem;
}

.search-result-name {
    font-size: 0.8125rem;
    color: var(--ios-gray);
}

/* Edit Mode Styles */
.delete-btn-container {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.edit-mode .delete-btn-container {
    width: 32px;
    opacity: 1;
}

.delete-btn {
    background-color: var(--ios-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.drag-handle {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--ios-gray);
    cursor: grab;
}

.edit-mode .drag-handle {
    width: 32px;
    opacity: 1;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--ios-separator);
    transition: all 0.3s ease;
    user-select: none;
}

.ticker-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.edit-mode .ticker-content {
    pointer-events: none;
}

.edit-mode .change-pill,
.edit-mode .gemini-rating {
    display: none !important;
}

.ticker-item.dragging {
    opacity: 0.5;
    background-color: var(--ios-dark-gray);
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-bottom: 6px;
    border-bottom: 0.5px solid var(--ios-separator);
}

h2 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ios-gray);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.edit-btn {
    background: none;
    border: none;
    color: var(--ios-blue);
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 0 8px 12px;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-user-select: none;
    user-select: none;
}

.edit-btn:active {
    opacity: 0.5;
    transform: scale(0.98);
}

.ticker-item:active {
    background-color: var(--ios-dark-gray);
}

.ticker-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.symbol {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.name {
    font-size: 0.875rem;
    color: var(--ios-gray);
    font-weight: 400;
}

.ticker-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    min-width: 80px;
    text-align: right;
}

.change-pill {
    min-width: 76px;
    padding: 6px 4px;
    border-radius: 6px;
    background-color: #333;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
    display: flex;
    justify-content: center;
}

.gemini-rating {
    width: 82px;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1a73e8 0%, #a142f4 100%);
    color: white;
    box-shadow: 0 0 10px rgba(161, 66, 244, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.gemini-rating:active {
    transform: scale(0.92);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--ios-dark-gray);
    border-radius: 14px;
    width: 100%;
    max-width: 320px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 0.5px solid var(--ios-separator);
    animation: modalAppear 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    max-height: 85dvh;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--ios-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

#modal-explanation {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ios-text);
    text-align: left;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#modal-explanation::-webkit-scrollbar {
    display: none;
}

#modal-rating-pill {
    flex-shrink: 0;
}

.modal-footer {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--ios-gray);
    text-align: center;
    flex-shrink: 0;
}

.rating-buy {
    background: linear-gradient(135deg, #30d158 0%, #1a73e8 100%);
}

.rating-sell {
    background: linear-gradient(135deg, #ff453a 0%, #a142f4 100%);
}

.portfolio-item {
    border-bottom: 2px solid var(--ios-separator);
    margin-bottom: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.portfolio-item:active {
    opacity: 0.6;
}

.portfolio-tag {
    background: linear-gradient(135deg, #ff9500 0%, #ffcc00 100%) !important;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.2) !important;
    pointer-events: none;
    cursor: default !important;
}

.trading-interface {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid var(--ios-separator);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.quantity-control {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--ios-dark-gray);
    border: 1px solid var(--ios-separator);
    border-radius: 10px;
    padding: 6px 12px;
}

.input-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ios-gray);
    text-transform: uppercase;
}

.input-group input {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    width: 60%;
    outline: none;
}

#trade-qty:focus, #trade-amt:focus {
    color: var(--ios-blue);
}

.max-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.max-btn {
    flex: 1;
    background-color: var(--ios-separator);
    border: none;
    border-radius: 6px;
    color: var(--ios-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.max-btn:active {
    opacity: 0.6;
}

.holding-info {
    font-size: 0.75rem;
    color: var(--ios-gray);
    font-weight: 400;
}

.trading-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.trade-total {
    font-size: 0.8125rem;
    color: var(--ios-text);
    font-weight: 600;
    text-align: center;
}

#trade-total-value {
    color: var(--ios-blue);
}

.action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.trade-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.trade-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.trade-btn.buy {
    background-color: var(--ios-green);
    color: white;
}

.trade-btn.sell {
    background-color: var(--ios-red);
    color: white;
}

.portfolio-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    gap: 12px;
}

.stat-item {
    flex: 1;
    background-color: var(--ios-separator);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.625rem;
    color: var(--ios-gray);
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
}

.holdings-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.holding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--ios-separator);
}

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

.holding-left {
    display: flex;
    flex-direction: column;
}

.holding-symbol {
    font-weight: 700;
    font-size: 0.9375rem;
}

.holding-qty {
    font-size: 0.75rem;
    color: var(--ios-gray);
}

.holding-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.holding-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

.holding-delta {
    font-size: 0.75rem;
    font-weight: 600;
}

.delta-pos { color: var(--ios-green); }
.delta-neg { color: var(--ios-red); }

.portfolio-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
}

.reset-btn-link {
    background: none;
    border: none;
    color: var(--ios-red);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 4px;
}

#starting-funds-btn {
    color: var(--ios-blue);
}

.reset-btn-link:active {
    opacity: 0.5;
}

/* Confirmation Modal Specifics */
.confirm-content {
    max-width: 270px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.confirm-content .modal-body {
    padding: 20px 16px;
    text-align: center;
    gap: 12px;
}

.confirm-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
}

.confirm-content p {
    font-size: 0.8125rem;
    color: white;
    line-height: 1.3;
}

.confirm-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 0.5px solid var(--ios-separator);
    margin-top: 4px;
}

.confirm-btn {
    background: none;
    border: none;
    padding: 12px;
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
    border-bottom: 0.5px solid var(--ios-separator);
}

.confirm-btn:last-child {
    border-bottom: none;
}

.confirm-btn.danger {
    color: var(--ios-red);
    font-weight: 600;
}

.confirm-btn.secondary {
    color: var(--ios-blue);
    font-weight: 600;
}

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

.starting-funds-input {
    background-color: var(--ios-dark-gray) !important;
    border: 1px solid var(--ios-separator) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center !important;
}

.starting-funds-input span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ios-text);
}

.starting-funds-input input {
    font-size: 1.125rem !important;
    width: 100% !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
    color: white !important;
    outline: none;
}
    font-weight: 500;
    cursor: pointer;
    margin-top: 24px;
    width: 100%;
    text-align: center;
    padding: 12px;
}

.reset-btn-link:active {
    opacity: 0.5;
}

/* Confirmation Modal Specifics */
.confirm-content {
    max-width: 270px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.confirm-content .modal-body {
    padding: 20px 16px;
    text-align: center;
    gap: 8px;
}

.confirm-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
}

.confirm-content p {
    font-size: 0.8125rem;
    color: white;
    line-height: 1.3;
}

.confirm-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 0.5px solid var(--ios-separator);
    margin-top: 12px;
}

.confirm-btn {
    background: none;
    border: none;
    padding: 12px;
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
    border-bottom: 0.5px solid var(--ios-separator);
}

.confirm-btn:last-child {
    border-bottom: none;
}

.confirm-btn.danger {
    color: var(--ios-red);
    font-weight: 600;
}

.confirm-btn.secondary {
    color: var(--ios-blue);
}

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

.modal-content {
    max-width: 360px; /* Slightly wider for portfolio */
}

.ios-footer {
    margin-top: auto;
    padding: 24px 0 12px;
    text-align: center;
    border-top: 0.5px solid var(--ios-separator);
}

.api-config {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.api-config input {
    background-color: var(--ios-dark-gray);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 0.75rem;
    width: 200px;
}

.api-config button {
    background-color: var(--ios-blue);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.api-config button:active {
    opacity: 0.7;
}

.footer-source {
    font-size: 0.75rem;
    color: var(--ios-gray);
    line-height: 1.6;
}

/* Gemini thinking pulse */
.thinking {
    animation: pulse 1.5s infinite linear;
    opacity: 0.6;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}
.loading .symbol, 
.loading .name, 
.loading .price {
    color: transparent;
    background: linear-gradient(90deg, #1c1c1e 25%, #2c2c2e 50%, #1c1c1e 75%);
    background-size: 200% 100%;
    animation: ios-skeleton 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes ios-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.refreshing svg {
    animation: spin 0.8s linear infinite;
}

.positive {
    background-color: var(--ios-green) !important;
}

.negative {
    background-color: var(--ios-red) !important;
}

/* Landing Overlay Styles */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ios-bg);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 40px 20px;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.landing-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.landing-header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.landing-logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 8px;
    line-height: 1;
}

.landing-tagline {
    font-size: 1.125rem;
    color: var(--ios-gray);
    font-weight: 500;
    letter-spacing: -0.2px;
}

.landing-one-liner {
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.landing-one-liner p {
    font-size: 1.25rem;
    color: var(--ios-gray);
    line-height: 1.5;
    font-weight: 400;
}

.landing-one-liner .gem-gradient {
    font-weight: 700;
}

.install-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.install-app-btn {
    width: 100%;
    background-color: #0a84ff;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.install-app-btn:active {
    transform: scale(0.96);
    background-color: #0071e3;
}

.install-hint {
    font-size: 0.8125rem;
    color: var(--ios-gray);
    text-align: center;
    line-height: 1.3;
}

.install-hint strong {
    color: var(--ios-blue);
}

.get-started-btn {
    width: 100%;
    background: linear-gradient(135deg, #007aff 0%, #a142f4 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(161, 66, 244, 0.3);
    transition: transform 0.2s, opacity 0.2s, background 0.3s;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.get-started-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--ios-gray) !important;
    box-shadow: none;
}

.get-started-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(161, 66, 244, 0.4);
}

.get-started-btn:active:not(:disabled) {
    transform: scale(0.96);
    opacity: 0.9;
}

.landing-legal {
    width: 100%;
    background-color: var(--ios-dark-gray);
    padding: 16px;
    border-radius: 12px;
    border: 0.5px solid var(--ios-separator);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.landing-legal p {
    font-size: 0.75rem;
    color: var(--ios-gray);
    line-height: 1.4;
    margin-bottom: 12px;
}

.legal-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.legal-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--ios-blue);
    cursor: pointer;
}

/* App Banner Styles */
.app-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding: 10px 16px;
    z-index: 3000;
    border-bottom: 0.5px solid var(--ios-separator);
    animation: bannerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
    from { 
        transform: translateY(-100%);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-close {
    font-size: 1.5rem;
    color: var(--ios-gray);
    margin-right: 12px;
    cursor: pointer;
    line-height: 1;
}

.banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-right: 12px;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.banner-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

.banner-subtitle {
    font-size: 0.75rem;
    color: var(--ios-gray);
}

.banner-get-btn {
    background-color: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.banner-get-btn:active {
    background-color: #0071e3;
}

/* Coach Mark Styles */
.coach-mark {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    justify-content: center;
    animation: coachMarkSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.coach-mark-content {
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--ios-separator);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

.coach-mark-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.coach-mark-text p {
    font-size: 0.875rem;
    color: var(--ios-gray);
    line-height: 1.4;
}

.coach-mark-text strong {
    color: var(--ios-text);
}

.coach-mark-close {
    background-color: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.coach-mark-close:active {
    opacity: 0.8;
}

.coach-mark-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(28, 28, 30, 0.95);
}

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

body.has-app-banner .ios-container {
    padding-top: 80px; /* banner height (approx 64px) + spacing (16px) */
}

body.has-app-banner .landing-overlay {
    padding-top: 80px;
}

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

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