
.pt-page { max-width: 100%; margin: 0; padding: 15px 10px; margin-top: 0; font-family: 'Outfit', system-ui, -apple-system, sans-serif; }
.pt-hero { 
    background: linear-gradient(135deg, #091e3a 0%, #1e3a5f 55%, #104f55 100%); 
    color: #fff; 
    border-radius: 16px; 
    padding: 12px 16px; 
    margin-bottom: 14px; 
    box-shadow: 0 10px 25px -5px rgba(9, 30, 58, 0.25), 0 8px 10px -6px rgba(9, 30, 58, 0.2); 
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pt-hero h1 { margin: 0; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; font-family: 'Outfit', 'Amiri', serif; }
.pt-hero .pt-location-text { font-size: 0.75rem; opacity: 0.85; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pt-hero .hijri-badge { 
    background: rgba(255,255,255,0.12); 
    padding: 3px 8px; 
    border-radius: 999px; 
    font-size: 0.72rem; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(251, 191, 36, 0.35); 
    color: #fef08a;
}
.pt-hero .hijri-badge i { color: #f59e0b; }
.pt-hero .gregorian { font-size: 0.68rem; opacity: 0.8; margin-top: 2px; font-weight: 500; }

.pt-location-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 15px; }
.pt-location-bar input { flex: 1; min-width: 150px; padding: 9px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 13px; transition: 0.25s; }
.pt-location-bar input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.pt-location-bar button { padding: 9px 16px; background: #1e3a5f; color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem; }
.pt-location-bar button:hover { background: #0f172a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2); }

.pt-grid { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    gap: 6px; 
    padding: 6px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: space-between;
}
.pt-grid::-webkit-scrollbar { display: none; }

.pt-card { 
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.14); 
    border-radius: 12px; 
    padding: 7px 4px; 
    text-align: center; 
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
    flex: 1;
    min-width: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.pt-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.pt-card.next { 
    background: #ffffff !important; 
    color: #0f172a !important; 
    border: 2px solid #38bdf8 !important; 
    box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.4), 0 0 0 1px rgba(56, 189, 248, 0.25) !important; 
    transform: translateY(-2px);
}
.pt-card.next .pt-name { color: #0284c7 !important; opacity: 1 !important; font-weight: 800; }
.pt-card.next .pt-time { color: #0f172a !important; font-weight: 850; }
.pt-name { 
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 9.5px; 
    text-transform: uppercase; 
    letter-spacing: 0.4px; 
    color: rgba(255,255,255,0.85); 
    font-weight: 700; 
    margin-bottom: 2px; 
}
.pt-time { 
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.92rem; 
    font-weight: 800; 
    color: #fff; 
    line-height: 1.15; 
}
.pt-next-label { 
    font-size: 8.5px; 
    text-transform: uppercase; 
    margin-top: 3px; 
    font-weight: 700; 
    padding: 2px 5px; 
    border-radius: 999px; 
    background: linear-gradient(135deg, #0284c7, #0ea5e9); 
    color: #fff; 
    display: inline-block; 
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
    font-family: 'Outfit', monospace; 
}

.pt-method-row { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }
.pt-method-row .method-group { display: flex; flex-direction: column; gap: 4px; }
.pt-method-row label { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pt-method-row select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; color: #1e3a5f; font-weight: 600; outline: none; transition: 0.2s; }
.pt-method-row select:focus { border-color: #0284c7; }
.pt-notify-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-notify-inline select { padding: 4px 8px; border-radius: 999px; font-size: 11px; }
.pt-notify-prayers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pt-notify-prayers label { font-size: 10px; color: #4b5563; display: inline-flex; align-items: center; gap: 3px; }

.pt-tracker {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.78rem;
}
.pt-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.pt-tracker-header span:first-child { font-weight: 700; color: #0f172a; }
.pt-tracker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-tracker-row label { 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    color: #334155; 
    background: #ffffff; 
    padding: 4px 10px; 
    border-radius: 999px; 
    border: 1px solid #cbd5e1; 
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pt-tracker-row label:hover { border-color: #0284c7; }

.pt-section { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.pt-section h2 { margin: 0 0 15px 0; font-size: 1.1rem; color: #1e3a5f; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pt-section h2 i { color: #0284c7; background: #f0f9ff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.9rem; }

/* Quick Islamic Tools Grid */
.pt-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.pt-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pt-tool-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
}
.pt-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pt-tool-info { flex: 1; min-width: 0; }
.pt-tool-info h3 { margin: 0 0 3px 0; font-size: 0.98rem; font-weight: 700; color: #0f172a; }
.pt-tool-info p { margin: 0; font-size: 0.78rem; color: #64748b; line-height: 1.35; }
.pt-tool-arrow { color: #94a3b8; font-size: 0.85rem; transition: transform 0.2s ease, color 0.2s ease; margin-left: auto; }
.pt-tool-card:hover .pt-tool-arrow { transform: translateX(3px); color: #0284c7; }

.pt-table-wrap { overflow-x: auto; margin-top: 15px; border-radius: 10px; border: 1px solid #e2e8f0; }
.pt-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 13px; }
.pt-table th { background: #f8fafc; color: #1e3a5f; padding: 10px; text-align: left; font-weight: 700; border-bottom: 2px solid #e2e8f0; }
.pt-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; color: #475569; }
.pt-table tr.today { background: rgba(59, 124, 181, 0.05); font-weight: 700; }
.pt-table tr:hover { background: #fbfcfe; }

.pt-month-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-link { display: inline-flex; align-items: center; gap: 8px; color: #3b7cb5; font-weight: 700; text-decoration: none; padding: 8px 12px; background: #f1f5f9; border-radius: 8px; transition: 0.2s; font-size: 0.85rem; }
.pt-link:hover { background: #3b7cb5; color: #fff; }

@media (max-width: 600px) { 
    .pt-hero { padding: 10px 14px; } 
    .pt-hero h1 { font-size: 1rem; } 
    .pt-grid { gap: 5px; }
    .pt-card { padding: 5px; }
    .pt-time { font-size: 0.8rem; }
    .pt-name { font-size: 8px; }
    /* Monthly table on phones (21 Nov 2026): fit the screen, one line per cell, no sideways scrolling */
    .pt-page { padding-left: 4px; padding-right: 4px; }
    #ptMonthlySection { padding: 14px 6px; }
    #ptMonthlySection .pt-table-wrap { overflow-x: visible; }
    #ptMonthlySection .pt-table { min-width: 0; table-layout: fixed; font-size: clamp(10px, 3vw, 13px); }
    #ptMonthlySection .pt-table th,
    #ptMonthlySection .pt-table td { padding: 7px 1px; white-space: nowrap; word-break: normal; overflow-wrap: normal; text-align: center; overflow: hidden; text-overflow: clip; }
    #ptMonthlySection .pt-table th { font-size: 0.8em; letter-spacing: -0.01em; }
    #ptMonthlySection .pt-table th:first-child,
    #ptMonthlySection .pt-table td:first-child { width: 19%; text-align: left; padding-left: 5px; }
    #ptMonthlySection .pt-hijri { font-size: 0.75em; }
    #ptMonthlySection .pt-table { font-size: clamp(11px, 3.5vw, 14px); display: table !important; width: 100% !important; }
    #ptMonthlySection .pt-table thead { display: table-header-group !important; }
    #ptMonthlySection .pt-table td { vertical-align: middle; line-height: 1.15; }
    #ptMonthlySection .pt-ampm { display: block; font-size: 0.68em; letter-spacing: 0.02em; margin-top: 1px; }
    #ptMonthlySection .pt-hijri-long { display: none; }
    #ptMonthlySection .pt-hijri-short { display: inline; }
}
.pt-hijri-short { display: none; }
#ptMonthlySection .pt-table { font-variant-numeric: tabular-nums; }
#ptMonthlySection .pt-ampm { font-size: 0.78em; opacity: 0.75; }
.pt-hijri { font-size: 11px; }
